Perhaps I'm mistaken, but it looks to me like goto is indeed an ASM instruction. I was always told to avoid goto in C because it was too "Assembly-ish".
Perhaps I'm mistaken, but it looks to me like goto is indeed an ASM instruction. I was always told to avoid goto in C because it was too "Assembly-ish".
It is correct though since the result of the comparison operators is always 0 or 1, just semantically... unusual and hence obfuscated, and if someone thinks that they can freely replace || and && except for short-circuiting, they could get bitten when the operands aren't strictly 0 or 1.Originally Posted by Hodor
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)