Re^2: declaring variable
    Roemer Lievaart 
    rblieva at cs.vu.nl
       
    Sat Apr  8 07:08:40 AEST 1989
    
    
  
hascall at atanasoff.cs.iastate.edu (John Hascall) writes:
>In article <26707 at tiger.oxy.edu> bagpiper at oxy.edu (Michael Paul Hunter) writes:
>>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.
*Very* unlikely, since this can only be if
	a) the declaration is within a function
	b) the variables WhatAmI and AndMoreVariables already exist
>Any other guesses?
If the declaration is a global declaration, the compiler probably just sees
the variables WhatAmI and AndMoreVariables as int's.
I've only met one compiler (in UNIX, on a PDP11), who has trouble with leaving
the word 'int' away if there isn't anything else like 'short', 'unsigned', 
'extern', etc.
It's just like you can write
nothing(a)
{ return a; }
instead of
int nothing(a)
{ return a; }
>John Hascall
____________________________________________________________________________
Roemer B. Lievaart |   "But make sure you do it right the first time,
Amsterdam, Holland |    'cause nothing's worse than a suicide chump"
rblieva at cs.vu.nl   | 		-- Frank Zappa
    
    
More information about the Comp.lang.c
mailing list