You are on page 1of 3

data types In C | Programmerdouts

programmerdouts.blogspot.com/2019/06/data-types-in-c-in-c-programming.html

Data Types in C
In the C programming language, data types are declarations for memory locations or
variables that determine the characteristics of the data that may be stored and the methods
(operations) of processing that are permitted involving them. The C language provides basic
arithmetic types, such as integer and real number types, and syntax to build array and
compound types. Several headers in the C standard library contain definitions of support
types, that have additional properties, such as providing storage with an exact size,
independent of the implementation.

DATA TYPES IN 'C'

Some valid and invalid declarations

Data Types Memory Requirement Description

1/3
int 2 bytes stores a whole number

float 4 bytes stores a floating point number

char 1 bytes stores a character

double 8 bytes Double prcession floating number

bool 1 bit stores a true or false value

DATA TYPES IN 'C'

Qualifiers
The qualifiers such as signed ,unsigned, long, and short.
they can be applied to character and integer basic datatypes .
however, the qualifier long may also be applied to double.

Qualifiers and their casting

Types Memory Requirement Range

int 2 bytes -32,768 to 32,768

char 1 bytes -128 to 127

unsigned int 2 bytes 0 to 65535

signed int 2 bytes -32,768 to 32,767

short int 2 bytes -32,768 to 32,767

unsigned short int 2 bytes 0 to 65535

signed short int 2 bytes -32,768 to 32,767

long int 4 bytes -214748648 to 21477483647

signed long int 4 bytes -214748648 to 21477483647

unsigned long int 4 bytes 0 to 4294967295

unsigned char 1 bytes 0 to 255

signed char 1 bytes -128 t 127

2/3
float 4 bytes -3.4e-38 to 3.4e+38

double 8 bytes -1.7e-308 to 1.7e+308

long double 10 bytes 3.4e-4932 to 1.1e+4932

bool 1 bit 0 t0 1

QUALIFIERS IN 'C' , just for your knowledge

Keywords and Identifier

Further Concepts
What are Variables?
What are Constant?
what are Escape Sequences?
keyword 'const'
different types of declaring constants
Operators In C
Simple Practice Programs

3/3

You might also like