A few days ago, I happened to find a very fire problem.
"What is the artifice of C language?" "Although the problem itself is nothing special, but the Netizen's answer is very humorous."
Let's look at the most-liked answers below. "C-language operators tend to '--".
I believe all the friends who have studied C are aware that there is no '---' operator in C.
So why do users say that the program can run it?
In fact, '--' is the combination of operator '--' and ' > '.
Since ' > ' priority is greater than '-', the order of execution for X--0 should be as follows:
First x > 0
In X--
After the above analysis, the above code can actually be written as follows.
#include <stdio.h>int main () { int; while 0 ) { x--; printf ("", x); } return 0 ;}
Finally, attach the result of the operation:
Thank you for reading.
Explain, artifice the most fiery answer to the C language.