Sunday, December 7, 2014

What are the various data types in use in C?

1. char- one byte always
2. int- 2bytes on 16bit  system and 4 bytes on 32 bit systems
3. float- 4 bytes always
4. double- 8 bytes always
5. void- generic pointer


These top 4 data types can be modified using these keywords.
1. signed-char and int
2. unsigned- char and int
3. long- int(4bytes always) and double(10bytes always)
4. short- int(2bytes always)



keyword int may be omitted without any errors.

signed int == signed
unsigned int == unsigned
long int == long
short int == short


No comments:

Post a Comment