FREE TUTORIALS ON C programming

Monday, December 23, 2013

C as a programming  language is very rich in terms of date types.Now you might be wondering what is a data type? in simple terms what it means is what type of data can be store in a variable(A variable is a placeholder for data)every variable has a type and it determines what can be stored in that variable.

Different types of data types:

INTEGER - Integer data type is used to hold a whole number(A number without a fractional part eg 2,5).
integer data type is denote by INT KEYWORD


CHARACTER - Character data type is used to hold a single character(eg. 3,m,-).


FLOAT - Float data type is used to hold a fractional number(A number with a decimal part eg 2.25,63.25).

DOUBLE - Double data type is also used to hold a fractional number but it has a greater precision as compared to float(Now might be wondering what is a precision in simple terms what it means how many numbers after the decimal point can be displayed with greater accuracy).








7:24 PM   Posted by Unknown with No comments

0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Search