Data Types in C Language

Posted on

Knowledge Varieties in C Language

 

Within the C programming language, information varieties are declarations for reminiscence places or variables that decide the traits of the info which may be saved and the strategies (operations) of processing which are permitted involving them.

Knowledge varieties are used to outline a variable earlier than to make use of in a program.

Determine the kind of a variable when it declared.

Determine the kind of the return worth of a operate.

Varieties Knowledge Varieties
Primary Knowledge Sort int, char, float, double
Derived Knowledge Sort array, pointer, construction, union
Enumeration Knowledge Sort enum
Void Knowledge Sort void

Knowledge Varieties Reminiscence Measurement Vary
char 1 byte −128 to 127
signed char 1 byte −128 to 127
unsigned char 1 byte zero to 255
quick 2 byte −32,768 to 32,767
signed quick 2 byte −32,768 to 32,767
unsigned quick 2 byte zero to 65,535
int 2 byte −32,768 to 32,767
signed int 2 byte −32,768 to 32,767
unsigned int 2 byte zero to 65,535
quick int 2 byte −32,768 to 32,767
signed quick int 2 byte −32,768 to 32,767
unsigned quick int 2 byte zero to 65,535
lengthy int 4 byte -2,147,483,648 to 2,147,483,647
signed lengthy int 4 byte -2,147,483,648 to 2,147,483,647
unsigned lengthy int 4 byte zero to 4,294,967,295
float 4 byte
double 8 byte
lengthy double 10 byte