adplus-dvertising
frame-decoration

Question

What will be the value of x and y after execution of the following statement (C language)
n ==5;x=n++;y=-x;?

a.

5,4

b.

6,5

c.

5,6

d.

5,5

Posted under C Programming

Answer: (a).5,4

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the value of x and y after execution of the following statement (C language) n ==5;x=n++;y=-x;?