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
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
English,
4 months ago
Science,
4 months ago
Environmental Sciences,
8 months ago
Science,
8 months ago
Geography,
11 months ago