Tagged: datatypes in c

Data Types in C 28

Data Types in C

Data types determine the following: • Range of the data • Type of the data stored • Number of bytes it occupies in memory C supports following data types: • int – occupies 2 (16-bit compiler) or 4 bytes (32-bit compiler) of memory • float – occupies 4 byes of memory • double – occupies 8 bytes of memory • char – occupies 1 byte of memory int is used to define integer numbers. It occupies 2 bytes of memory (16-bit compiler)

float is used to define floating type numbers. It occupies 4 bytes of memory (16-bit compiler)