Programming Languages C Objective
Mar 08, 2013

What will be output of following c code?
#include "stdio.h"
#include "string.h"
void main()
{
  int i=0;
  for(;i<=3;)
   printf(" %d",++i);
}

Choose the correct answer:
A) 1 2 3 4
B) 0 1 2 3
C) 1 2 3
D) Compiler error
Detailed Explanation

In for loop each part is optional.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback