int y = 7;
int ans = ++y;
cout<<"ans="<
cout<<"y"<
Why value of "y" is incremented?
Answers
Answered by
1
Answer:
value of y gets incremented because you have used ++ operator, which will increase the value by 1
Similar questions