在阅读Hidden Features and Dark Corners of C++/STL oncomp.lang.c++.moderated
之后,我完全惊讶于以下代码片段在 Visual Studio 2008 和 G++ 4.4 中编译和工作。
这是代码:
#include <stdio.h>
int main()
{
int x = 10;
while (x --> 0) // x goes to 0
{
printf("%d ", x);
}
}
输出:
9 8 7 6 5 4 3 2 1 0
我假设这是 C,因为它也适用于 GCC。这在标准中是哪里定义的,它是从哪里来的?