Quote:
|
Originally Posted by aaeamdar
Neat but terrible shorthand (don't do this):
x += x < 100;
Which does? I throw it out there.
|
Ooh, clever. Dangerous, but clever. It increments x unless it's already 100 or greater.
Code:
if (x < 100)
x = x + 1;
It's true, C
does give you enough rope to shoot yourself in the foot.