Knowledge Sorts in C Language
Within the C programming language, knowledge sorts are declarations for reminiscence places or variables that decide the traits of the information which may be saved and the strategies (operations) of processing which can be permitted involving them.
Knowledge sorts are used to outline a variable earlier than to make use of in a program.
Establish the kind of a variable when it declared.
Establish the kind of the return worth of a operate.
Sorts | Knowledge Sorts |
---|---|
Primary Knowledge Sort | int, char, float, double |
Derived Knowledge Sort | array, pointer, construction, union |
Enumeration Knowledge Sort | enum |
Void Knowledge Sort | void |
Knowledge Sorts | Reminiscence Dimension | 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 |