0

私はコンパイラで両方をチェックしました:

これの出力は 10

    int count = 0; 
    for(int i=0; i < 10; ++i){ 
            count=++count;
    }
    cout << count; 

this(++count が count++ になる) の出力が 0 になる理由がわかりません

    int count = 0; 
    for(int i=0; i < 10; ++i){ 
            count=count++;
    }
    cout << count; 
4

1 に答える 1