C ++中的“ - >”運算符是什么?看完后隱藏功能和C ++ / STL的暗角上comp.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);
}}我假設(shè)這是C,因為它也適用于GCC。標(biāo)準(zhǔn)中定義了哪里,它來自何處?
- 4 回答
- 0 關(guān)注
- 866 瀏覽
添加回答
舉報
0/150
提交
取消