Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
davydog187
· 8y ago · 0 comments
Whats up with the do/while loops? Does that just make the return syntactically valid?
Apologies, its been a while since I've touched C/C++
Comments
[–]
tom_
8y ago
This is dealt with at the bottom of the article. It's a C FAQ:
http://c-faq.com/cpp/multistmt.html
[–]
okl
8y ago
GCC has an extension that can be used instead of the do-while loop, see example macro definition here:
https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html
[–]
pdexter
8y ago
https://stackoverflow.com/questions/154136/why-use-apparentl...