Monday, March 14, 2011

How is size of int determined?

int data type's size is usually chosen as natural size of the ALU.
Width of ALU = Size of operand.
Popular ALU's are 16 bits or 32 bits.
int is a non-portable data type.
To develop portable programs, two suffixes are used viz. short and long.

NOTE: Size of every type of pointer is the size of int

No comments: