declaring variable

John Hascall hascall at atanasoff.cs.iastate.edu
Fri Apr 7 02:13:49 AEST 1989


In article <26707 at tiger.oxy.edu> bagpiper at oxy.edu (Michael Paul Hunter) writes:
>A friend of mind had a program that wasn't working properly. (what a nice start)
>Within this program was a declaration that was similar to:

>double A,
>       B,
>       fooY,
>       fooX,
>       whelp; /* <--- note this */
>       WhatAmI,
>       AndMoreVariables;

   It looks like what we have here is:  

       double A....whelp;

       WhatAmI, AndMoreVariables;
       ^      ^       ^
       expr   comma   expression
	      operator

   Which appears to be a valid (although non-useful) statement.

Any other guesses?

John Hascall



More information about the Comp.lang.c mailing list