Assignment in test: OK?

Robert J. Drabek robert at cs.arizona.edu
Thu Sep 20 01:18:35 AEST 1990


Kartik Subbarao writes:
> 
> But now how do I say ``If a is less then -1''? 
> 

You would write

    if (a < )
      -1;

Of course, you've forgotten to specify what you want to compare `a' with.
English can be as unforgiving as C.  8-)

-- 
Robert J. Drabek                            robert at cs.Arizona.EDU
Department of Computer Science              uunet!arizona!robert
The University of Arizona                   602 621 4326
Tucson, AZ  85721



More information about the Comp.lang.c mailing list