Computer Science, asked by vavilapallipavan, 1 year ago

tell the output : n=5;x,y; if x=n++;y=x--

Answers

Answered by nitish8089
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

nitish8089: i post out the code solution with output.
vavilapallipavan: ok
nitish8089: on my recently asked question in form of screen-shot
nitish8089: so you could check the output
vavilapallipavan: what??
nitish8089: and code also
vavilapallipavan: goodnight
vavilapallipavan: tomorrow we will talk
vavilapallipavan: at evening
nitish8089: ok
Similar questions