You are not logged in.

#1 2015-09-15 06:04:22

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Control Structures:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … Structures

Directions:
What will be the output of given program?

Question:
#include<stdio.h>
void main()
{
      int i=1, j=-1;
      if((printf("%d", i)) < (printf("%d", j)))
            printf("%d", i);
      else
            printf("%d", j);
}

Option A):
complier error
Option B):
1 -1 1
Option C):
-1
Option D):
1

Correct Answer is Option B):
1 -1 1


Failure is the first step towards seccess.

2015-09-15 06:04:22

Advertisement
Ads By Google

Re: C Language Control Structures:



Board footer