Breaking

Thursday 25 April 2019

Data Types in C | C Programing Tutorial | How Many Data Types in C

Data Types in C

A data type specifies the type of data that a variable can store such as integer, floating, character, etc.



There are the following data types in C language. 

Types
Data Types
Basic Data Types
Int,char,float,double
Derived Data types
array,pointer,structure,union
Enumeration Data Types
Enum
Void Data Types
void


Basic Data Types

The Basic data types are whole number based and gliding point based. C language bolsters both marked and unsigned literals.

The memory size of the essential information types may change as indicated by 32 or 64-bit working framework.

How about we see the fundamental information types. Its size is offered by 32-bit design.

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
4 byte
-2,147,483,648 to 2,147,483,647
Unsigned long
4 byte
0 to 4,294,967,295
Float
4 byte

Double
8 byte

Long double
10 byte



No comments:

Post a Comment