Thread: Help w/C++ syntax
a question in c++ class asking me printed following code
more need know operations are.code:x = 15; x += 3; y = ++x % 4; z = y--; cout << “x = “ << x << “ y = “ << y << “ z = “ << z;
x += 3 mean x = x + 3?
y = ++x % 4 mean y = 1+x % 4?
z = y-- mean z = y?
it easy test that!
put
cout<<"\nx "<<x<<endl;
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Help w/C++ syntax
Ubuntu
Comments
Post a Comment