Skip to main content

Thread: Help w/C++ syntax


a question in c++ class asking me printed following code

code:
x = 15; x += 3; y = ++x % 4; z = y--; cout << “x = “ << x << “ y = “ << y << “ z = “ << z;
more need know operations are.
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

Popular posts from this blog

Problem with all comment components. - Joomla! Forum - community, help and support

Nogen der kender et simpelt hvidt template med topmenu kun - Joomla! Forum - community, help and support

Perplessità: Help me please :) - Joomla! Forum - community, help and support