Size of int data type depends upon which compiler we are using. Hence memory representation also varies according to the compilers. Before explaining the memory representation of int dada type I would like to one very important concept endianess of operation system.
A computer has big endian architecture if it stores the data in memory in the following manner:
Data type tutorial home
C tutorial home.