help i dont understand the question

Please tell me what does this question want

QUESTION:
Change these expressions inform of compound statements (assume a and
b have been declared and initialized.

i. b = ++a * 5;
ii. b = --a * 5;
iii. b = a-- * 5;
iv. b = a++ * 5;
v. expnessonl ? exprssion2 : expression3;
Isn't that asking you to write the longer version of these calculations?
Please show one example pls b0ss
 
a = a - 1; b = a * 5;

You can figure out which one that applies to.


?: is the expression form of if / else
Thanks b0ss very much
It is asking for an explanation of compound statement:

b = ++a * 5;
is equivalent to
a = a + 1; b = a * 5;

b = --a * 5;
is equivalent to
a = a - 1; b = a * 5;

b = a-- * 5;
is equivalent to
b = a * 5; a = a - 1;

b = a++ * 5;
is equivalent to
b = a * 5; a = a + 1;

To learn more about C++ operators, please visit:
https://www.alphacodingskills.com/cpp/cpp-operators.php
Topic archived. No new replies allowed.