Total Pageviews

Monday 30 April 2012

C VAriables

Variables










































































































































On UNIX systems all ints are long ints unless specified as short int explicitly.

NOTE: There is NO Boolean type in C -- you should use char, int or (better) unsigned char.

Unsigned can be used with all char and int types.

To declare a variable in C, do:

var_type list variables;

e.g. int i,j,k;
               float x,y,z;
               char ch;

No comments:

Post a Comment