Data types

Integer "int" type data:

int variables can represent negative and positive integer values (whole numbers). There is a limit on the size of value that can be represented, which depends on the number of bytes of storage allocated to an int variable by the computer system and compiler being used. On a PC most compilers allocate two bytes(now in modern systems it is four bytes) for each int which gives a range of -32768 to +32767. for example:
int num; 
int n, m; 
int temp = 10; // initializing variable also.

Posted by IRFAN Saturday, April 3, 2010

0 comments

Post a Comment