What is output of program??????
Answers
Answered by
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