i=i++

Published: 03 Mar 2016 Category: c++
#include <iostream>
using namespace std;

int main() 
{
    int i=2;
    i=i++;
    cout<<i<<endl;
    return 0; 
}

输出: 3

comments powered by Disqus