C Programming - Control Instructions - Discussion

Discussion Forum : Control Instructions - Find Output of Program (Q.No. 19)
19.
What will be the output of the program?
#include<stdio.h>
int main()
{
    char j=1;
    while(j < 5)
    {
        printf("%d, ", j);
        j = j+1;
    }
    printf("\n");
    return 0;
}
1 2 3 ... 127
1 2 3 ... 255
1 2 3 ... 127 128 0 1 2 3 ... infinite times
1, 2, 3, 4
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
24 comments Page 3 of 3.

Pratik said:   1 decade ago
@narendra good explanation.

Thanks.

Nellaiappan N said:   9 years ago
Thanks for your answer @Padhu.

Dev said:   12 months ago
Here, it will be int i=1.

Pratik Gupta said:   1 decade ago
thanks @padhu


Post your comments here:

Your comments will be displayed after verification.