Sail E0 Webinar
Question


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;
}
Options:
A .  1 2 3 ... 127
B .  1 2 3 ... 255
C .  1 2 3 ... 127 128 0 1 2 3 ... infinite times
D .  1, 2, 3, 4
Answer: Option D



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers