Re:Humans should think of sizeof() as a function, says Linus...
by gumby on Saturday May 30, 2015 @12:40PM
(#9630699)
> Another oddity of C that amuses me is the do/while loop without braces: [...]
> Even though do/while is a keyword bracketing pair in C, it still only lets you use a single statement (because nested whiles).
Ah, but don't forget you can still use the comma operator, so get several statements in before the semicolon:
int i = 4;
do
printf("hey"), printf("Jude.\n");
while (--i > 0);
Ah, but don't forget you can still use the comma operator, so get several statements in before the semicolon: