adplus-dvertising
frame-decoration

Question

What is the result of the following statement?

X = 10;
y = ++x;

a.

x = 10, y = 10

b.

x = 10, y = 11

c.

x = 11, y = 10

d.

x = 11, y = 11

Answer: (d).x = 11, y = 11

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the result of the following statement? X = 10; y = ++x;