What happens if you try to compile and run this program?
#include <stdio.h>
int main(void) {
int i, j;
i = 1; i = 1;
while (i > 16) {
i += 4;
j++;
printf("%d",j);
return 0;
Answers
Answered by
1
Answer:
First of all it will show you an error since the curly braces of the while loop have not been ended and j variable has not been initialised.
Assuming the ending curly brace to be before the return statement and initial value of j is 1, output is:
2 3 4 5
Hope it helps you
Similar questions