C Datatypes
C Datatypes
CONTENTS
❖Data type
❖Built In type
❖User defined type
❖Derived type
DATA TYPE
➢A data type is a classification that
specifies the type of value a
variable can hold.
➢General syntax of declaration of
data type is
data_type variable_name;
➢Example: int a;
C++ Data type
Built-In Type
User-defined type
❖signed
❖unsigned
❖long
❖short
DATA TYPES SIZE RANGE
-2,147,483,648 to
int 4
2,147,483,647
-2,147,483,648 to
long int 4
2,147,483,647
0 to
unsigned long long int 8
18,446,744,073,709,551,615