What are the basic data types in C?

Posted by Editorial Staff | Updated on

What is basic data types in C?

In the C programming language, data types constitute the semantics and characteristics of storage of data elements. They are expressed in the language syntax in form of declarations for memory locations or variables.

Following are the basic data types in c programming language:

  • Int – Used to represent a number (integer)
  • Float – Used to represent a decimal number
  • Double – Used to represent a decimal number with highest precision
  • Char – Single character
  • Void – Special purpose type without any value

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers