tell the output : n=5;x,y; if x=n++;y=x--
Answers
Answered by
1
you miss the print statement so i will answering the value of each variable.
x=n++;
after this statement.
x=5 and n=6
y=x--;
after this statement
y=5 and x=4
so final value of variable is
n=6 , x=4, y=5
x=n++;
after this statement.
x=5 and n=6
y=x--;
after this statement
y=5 and x=4
so final value of variable is
n=6 , x=4, y=5
nitish8089:
i post out the code solution with output.
Similar questions
Business Studies,
9 months ago
Math,
9 months ago
Accountancy,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago
English,
1 year ago