Friday, February 18, 2011

Breaking up lines\ is easy to do part1

Author: Joe
Partner: dvd to mp3

 

Another anomaly of the RULES program is that rogue \ character found at the end of the tenth line. When used to end a line, the sole \ tells the compiler that the rest of the line is merely continued on the line that follows. So, these two lines:


printf(“C is done mostly in lowercase\
It’s a case-sensitive language.\n”);


are both seen as one single line when it comes time to compile; all the compiler sees is this:

printf(“C is done mostly in lowercase It’s a case-sensitive
language.\n”);

You may find such a trick necessary for extra-long lines as your programs grow
more complex. The \ simply lets you split up a long line between several lines
in your source code. That can be handy.

 

See also:

http://clanguage86.blogspot.com/2011/01/source-file-and-goodbyec-practice.html

http://clanguage86.blogspot.com/2011/01/c-development-cycle-and-c-programmer.html

http://clanguage86.blogspot.com/2011/01/stuff-you-dont-need-to-know-about.html

No comments:

Post a Comment