Computer Science, asked by Mansoorrafi, 1 year ago

Predict the output of the following
#include<iostream.h>
int main (void)
int i= 122;
while (i!=97)
i--;
while (i>65)
i--;
printf ("%c", i);
return 0;​

Answers

Answered by madhu4147
0

Answer:

here you should not %c because you are giving int

!= means not equal to

i-- means you should want to subtract the value(X=x-1)

x equal to y (x=y) in this symbol

Explanation:

ans: 121

because,

i=122

x=i-- means I=i-1

where I=122-1

=121

where in second x=I

=121

Similar questions