You are not logged in.

#1 2015-09-15 05:39:53

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

C Language Control Structures Statement:

C Programming Quizzes C Language Control Structures

Directions:
What is the output of the following statements?

Question:
for(i=10; i++; i<15)
   printf("%d ", i);

Option A):
Infinite loop
Option B):
9 10 11 12 13
Option C):
10 11 12 13 14
Option D):
10 11 12 13 14 15

Correct Answer is Option A):
Infinite loop


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

2015-09-15 05:39:53

Advertisement
Ads By Google

Re: C Language Control Structures Statement:



Board footer