Strange c++ piece of code

Hey!

I'm new to c++ and found the following construct:

int c = ((void)b, a);

Compiles and sets c = a. But what does it do !?!
I can't imagine. If the original program redefined the , operator to something weird perhaps it does something, but otherwise the code is nonsense. Better to just
int c = a;

Sorry you had to see that kruft.
Nope, it just compiles by pasting to main() *g*
Topic archived. No new replies allowed.