Is this correct a=/* comment */b;

Patrick Woo pat at ctycal.UUCP
Tue Feb 5 03:42:10 AEST 1991


I have the following line in some third party source code

a=/* This is a comment */b;

it compile using VAX C and fails with Green Hill C
Just wondering whether the compiler should read the line as

a = /*comment*/ b;

or

a =/ *comment ...;

-- 
  Patrick Woo                  pat%ctycal at cpsc.ucalgary.ca
  Land Information Services                 or
  The City of Calgary       ...{alberta,ubc-cs,uunet}!calgary!ctycal!pat



More information about the Comp.lang.c mailing list