.

C Programming Datatypes Assignment Help

Data types

C programming supports different data types which explains the characteristics of data. Each data type determines the range of values can hold and size of memory to be required.

datatypes image 1

Primary Data types:

The size and range of data types may vary according to machines. The size and range of different data types are given below according to 32-bit architecture.


C Programming Datatypes Assignment Help By Online Tutoring and Guided Sessions from assignmenthippo.com


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

.