254,926 views
37 votes
37 votes
What are the basic data types supported in C programing language?

User Aury
by
3.0k points

2 Answers

12 votes
12 votes

Answer:

The C language provides the four basic arithmetic type specifiers char, int, float and double, and the modifiers signed, unsigned, short, and long.

User Laydee
by
3.0k points
12 votes
12 votes

C Primary Data types:

The C language has 5 basic (primary or primitive) data types, they are:

  • Character - ASCII character set or generally a single alphabet like 'a', 'B', etc.
  • Integer - Used to store whole numbers like 1, 2, 100, 1000, etc.
  • Floating-point - Decimal point or real numbers values like 99.9, 10.5, etc.
  • Double - Very large numeric values which are not allowed in Integer or Floating point type.
  • Void - This means no value. This data type is mostly used when we define function.

Hope Helps!!

User Tafel
by
2.8k points