Commit 4806c2e9 authored by Michael's avatar Michael

michael.davityan:exercise_04_31

parent 8072b1eb
Pipeline #23074467 failed with stage
in 1 minute and 14 seconds
Question!!!.
-------------------------------------------------------------------------------------------------
What is wrong with the following statement? Provide the correct statement to accomplish what the
programmer was probably trying to do.
cout << ++( x + y );
Answer!!!.
----------------------------------------------------------------------------------------------------
Incrementation works correctly with lvalue operands(operands that have name, for example variables).
I think its more correct to wright this!!!
int x;
int y;
int z = x + y;
cout << ++z;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment