You are not logged in.

#1 2015-09-15 04:14:02

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
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


Failure is the first step towards seccess.

2015-09-15 04:14:02

Advertisement
Ads By Google

Re: C Language Control Structures Quiz:



Board footer