Check out the code fragment and explain why it works (I don't mean syntactically). It is based on some very sound principles of programming (at least in C/++), even though it looks completely useless (which it is) and syntactically incorrect (which is it not)
#include <stdio.h> int main() { 1; 2; 3; 4; 5; 6, 7, 8, 9, 0; return 0; }
Trust me, if you can explain the working behind this code snippet, you would understand a lot about statements and expressions in C/C++. Leave your explanation in comments.
No comments:
Post a Comment