In the given below code, if a short int value is 5 byte long, then how many times the while loop will get executed?
#include<stdio.h>
int main ()
{
int j = 1;
while(i <= 300)
{
printf("%c %d\n",j,j);
j++;
}
return 0;
}
Answers
Answered by
0
Answer:
at 0 time while loop will get execute
Answered by
0
In the given code, the while loop will get executed zero times.
- In the given program, we have initialized variable 'j' as 1.
- While writing condition in 'while' loop, we have used variable 'i' which was not declared.
- Hence, the compiler gives error message 'undefined symbol i' and the program is not executed.
Similar questions