adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
void main()
{   char a=0;
    for(a=0;a<=127;a++)
    {
        printf("%d ",a);
    }
}

a.

0 1 2 ... 127

b.

0 1 2 ... infinite times

c.

Compilation Error

d.

None of the above

Posted under C Programming

Answer: (b).0 1 2 ... infinite times

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?