Computer Science, asked by harshita6657, 1 month ago

II. Predict the output of the given snippet, when executed:
1. int x =1,y =1;
if( n>0)
{
X =X+1;
y =y+1;
}
What will be the
value of x and
assumes a value (i) 1
(ii) o?
y, if n​

Answers

Answered by goldenwind
0

X will go on infinite since n is not defined

Similar questions