Computer Science, asked by rajshriwardhankar212, 1 month ago

int y = 7;
int ans = ++y;
cout<<"ans="< cout<<"y"<
Why value of "y" is incremented?

Answers

Answered by ayushuttam3496
1

Answer:

value of y gets incremented because you have used ++ operator, which will increase the value by 1

Similar questions