C supports several different types of data,each of which may be represented differently within computer's memory.The basic data types are listed below.
DATA TYPE------------ DESCRIPTION ----TYPICAL MEMORY REQUIREMENTS
int----------------------- integer quantity---- 2 bytes or one word (varies from compiler to compiler)
char --------------------- single character-------------------------- ----------- 1 byte
float---------------------- a no. containing a decimal----------------- 1 word (4 bytes)
---------------------------point or an exponent
double-------------------- double precision floating point no. --------2 words (8 bytes)
Saturday, December 5, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment