0% found this document useful (0 votes)
26 views

Data Types in C Language

The document discusses the different data types in C including basic, derived, enumeration, and void types. It provides the memory size and value ranges for basic types like char, short, int, long, float, and double. Derived types include arrays, pointers, structures, and unions. The document also lists 32 keywords used in the C language.

Uploaded by

Htun Minn Oo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Data Types in C Language

The document discusses the different data types in C including basic, derived, enumeration, and void types. It provides the memory size and value ranges for basic types like char, short, int, long, float, and double. Derived types include arrays, pointers, structures, and unions. The document also lists 32 keywords used in the C language.

Uploaded by

Htun Minn Oo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

There are the following 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

The basic data types. Its size is given according to 32-bit architecture.
Data Types Memory Size Range
char 1 byte −128 to 127
signed char 1 byte −128 to 127
unsigned char 1 byte 0 to 255
short 2 byte −32,768 to 32,767
signed short 2 byte −32,768 to 32,767
unsigned short 2 byte 0 to 65,535
int 2 byte −32,768 to 32,767
signed int 2 byte −32,768 to 32,767
unsigned int 2 byte 0 to 65,535
short int 2 byte −32,768 to 32,767
signed short int 2 byte −32,768 to 32,767
unsigned short int 2 byte 0 to 65,535
long int 4 byte -2,147,483,648 to 2,147,483,647
signed long int 4 byte -2,147,483,648 to 2,147,483,647
unsigned long int 4 byte 0 to 4,294,967,295
float 4 byte
double 8 byte
long double 10 byte

Keywords in C:
C Language supports 32 keywords.
auto double int struct
break else long switch
case enum register typedef
char extern return union
const float short unsigned
continue for signed void
default goto sizeof volatile
do if static while

You might also like