Q8: List out Data Types with their range of values used in C OR explain primary data types in C language. OR List of basic data type used in C programming with their size and range.

 

A8:

 

Sr.no

Data Type

Bytes

Format Specifier

Range

1.

int / signed int

2

%d

-32768 to 32767

2.

short int / short signed int

1

%d

-128 to 127

3.

long int / long signed int

4

%d

-2147483648 to 2147483647

4.

unsigned int

2

%u OR %d

0 to 65535

5.

short unsigned int

1

%u OR %d

0 to 255

6.

long unsigned int

4

%d

0 to 4294967295.

7.

float

4

%f

3.4e-38 to 3.4e+38

8.

double

8

%f

1.7e-308 to 1.7e+308

9.

long double

10

%lf

3.4e-4932 to 3.4e+4932

10.

char / signed char

1

%c

-128 to 127

11.

unsigned char

1

%c

0 to 255

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.