About Lesson
Data Types/Types:
To store data the program must reserve space which is done using datatype. A datatype is a keyword/predefined instruction used for allocating memory for data. A data type specifies the type of data that a variable can store such as integer, floating, character etc. It used for declaring/defining variables or functions of different types before to use in a program.
There are 4 types of data types in C language.
Types |
Data Types |
Basic Data Type |
int, char, float, double |
Derived Data Type |
array, pointer, structure, union |
Enumeration Data Type |
enum |
Void Data Type |
void |