Computer Science, asked by sshaily233, 8 months ago

What will be the values of x and y after
execution of the following code :
int x, y = 0 ;
for (x = 1 ; X= 5; + +x)
y = x++ ;
- y,

Answers

Answered by ashraff0707
0

Answer:

x=6.

y=6.

Explanation:

first x++ ......x will become6........the again in y=x++.....then y=7   in the end -y........y will be 6

Similar questions