When is a do-while the better choice over other types of loops? What are some common scenarios where its better than others?
I understand the function of a do-while,
No-one's yet mentioned its use in C macros...
#define do_all(x) do{ foo(x); bar(x); baz(x); } while(0)
then in the code you can have
do_all(a);