C - Data Types

What is Data type?

The Data type in any programming language refers to the type of data that a variable of that language can hold. The concept behind the data-type is to efficiently utilize the memory space and identifying the type of data. So every data-type in every programming languages have their predefined characteristics i.e. how much memory will be allocated for a particular data type.

What are the different data-types in C?

C data types can be classified into to types

  1. Primary Data Type/Inbuilt data type/fundamental data type
  2. Secondary Data Type/User defined data type/derived data type

What are the primary data types in C Programming?

In C programming we have the following data types -

  1. int
  2. char
  3. float
  4. double
  5. void

What are the secondary data types in C programming?

In C programming we have the following data types -

  1. Array
  2. Pointer
  3. Structure
  4. Union
  5. Enum
15:00
Check Page Rank