Ads Top

Data Type In C

Data types in C 

Data types simply refers to the type and size of data associated with variables and functions.



Data type can be either fundamental (provided in C compiler), or derived (derived from fundamental data types).

These data type are different storage capacity.

 There are 2 different type of data types:-

  1. Primary data type
  2. Derived data type
  1. Primary data types:-
    These are fundamental data types in C namely integer(int), floating point(float), character(char) and void
  2. Derived data types:-
    Derived data types are nothing but primary datatypes but a little twisted or grouped together like array, stucture, union and pointer.
Data type determines the type of data a variable will hold. If a variable x is declared as int. it means x can hold only integer values. Every variable which is used in the program must be declared as what data-type it is.
Primary data types in c

No comments:

Powered by Blogger.