You are not logged in.

#1 2015-09-15 04:13:12

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

C Language Control Structures:

C Programming Quizzes C Language Control Structures

Directions:
What will be the output given program?

Question:
#include<stdio.h>
void main()
{
    int i = -10;
    for(;i;printf("%d ", i++));
}

Option A):
-10 to 0
Option B):
-10 to infinite
Option C):
Complier error
Option D):
-10 to -1

Correct Answer is Option D):
-10 to -1


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-15 04:13:12

Advertisement
Ads By Google

Re: C Language Control Structures:



Board footer