Size of data types in c


Size of data types in c programming language turbo C and GCC compilers


Size of data types in the 16 bit compilers, like TURBO c++ 3.0, Borland c++ etc:


Size of data types in the 32 bit compilers. Example: LINUX gcc compiler, Turbo c 4.5 etc:


Introduction
List of data types
Primitive data types in c
Modifiers of data types in c
List of modifiers in c
Default modifiers of data types in c
Default data of modifiers in c
Rules of using modifiers in c
Possibles modifiers of given data types in c
Size modifier in c
Size of data types in c
Sign modifier in c
Range of data types in c
Easy way to remember limit of data types in c
Const modifiers in c
Pointers modifier in c
Function modifier in c
Interrupt modifier in c
Volatile modifier in c
Fundamental data types in c
Memory representation of char in c
Memory representation of signed char in c
Memory representation of int in c
Memory representation of signed int in c
Memory representation of double in c

5 comments:

karthik said...

Size of enum in GCC is 4 bytes

Le Trung Thong said...

size of enum and struct ?

Rajas Pathak said...

I am new to C programming. I am not good in mathematics. I understood your tutorials but when I try to write a code I get stuck from the very first statement. Please tell me which things are to be taken in mind before writing a code. rajas1991@gmail.com

Hi said...

my dear enum and struct has no size when we define these it takes size according to the variable we r using in this !!!!like
sruct a
{
int a;
int b;
}
then the size of struct will be 4---

Chanchal said...

Yah !! Exactly. That's correct.