You are not logged in.

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

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

C Language Control Structures Quiz:

C Programming Quizzes C Language Control Structures

Directions:
What will be the output of the given program?

Question:
#include<stdio.h>
void main()
{
    int a=11,b=5;
    if(a=5) b++;
    printf("%d %d", ++a, b++);
}

Option A):
5 6
Option B):
12 7
Option C):
6 6
Option D):
11 6

Correct Answer is Option C):
6 6


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

2015-09-15 04:13:59

Advertisement
Ads By Google

Re: C Language Control Structures Quiz:



Board footer