Computer Science, asked by Anonymous, 10 hours ago

What is output of program??????​

Answers

Answered by Anonymous
4

include<stdio.h>

int main()

{

int n;

for(n = 7; n!=0; n--)

printf("n = %d", n--);

getchar();

return 0;

}

Output:Above program goes in infinite loop because n is never zero when loop condition (n != 0) is checked.

Similar questions