Translate

Search This Blog

Sunday, 10 November 2013

what is white-space in C programming ???




ans: white-space is the term used in c to describe blanks,tabs,newline,characters and comments. white-space separate one part of a statement from another and enables the compiler to identify where on element in a statement , such as int, ends and the next element begins. therefore, in the following statement :

 int age;


there must be at lest one white-space character ( usually a space) between int and age for the fruit .

compiler to be able to  distinguish them . on the  other hand , in the following statement :

= apple + oranges; // get the total fruit 

no white-space characters are necessary between fruit and  =, or between = and apple , although you are free to include some if you wish for readability purpose ..

No comments:

Post a Comment