Saturday, December 5, 2009

1.5 DATATYPES

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)

No comments:

Post a Comment