adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
void main()
{
  int j = -5;
  for(;j;printf("%d ", j++));
}

a.

-5 to -1

b.

-5 to 0

c.

-5 to infinity

d.

Compilation Error

Posted under C Programming

Answer: (a).-5 to -1

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?