Tuesday, February 3, 2015

Data Types in C

C Programming
Data Types in C :
Data type                   Size (Bytes) Range                            Format Specifiers

Char                             1 – 128 to 127                                          %c
Unsigned char              1 0 to 255                                                %c
Short or int                  2 – 32,768 to 32, 767                          %i or %d
Unsigned int                  2 0 to 655355                                       %u
Float                           4 3.4e – 38 to +3.4e +38                     %f or %g
Long                          4 = 2147483648 to 2147483647             %ld
Unsigned long           4 0 to 4294967295                                  %lu
Double                        8 1.7e – 308 to 1.7e+308                       %lf
Long double           10 3.4e – 4932 to 1.1e+4932                     %lf

No comments:

Post a Comment