[Courses] [C]Warnings? (Spoiler on Ex 7-1)

Laurel Fan laurel at sdf.lonestar.org
Wed Mar 6 20:38:26 EST 2002


On Wed, Mar 06, 2002 at 09:15:03PM -0500, Michelle Murrain wrote:
>    printf("Allowable English 
> Units:inches,feet,yards,miles,quarts,gallons\n\n");

Style note: you can do

  printf("Allowable English\n"
         "Units:inches,feet,yards,miles,quarts,gallons\n\n");

here, which I think looks a little nicer, since you get to keep your
indenting. C merges multiple consecutive string constants.

-- 
laurel at sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



More information about the Courses mailing list