You are not logged in.

#1 2015-09-17 04:12:12

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

Compiler Error:

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

Directions:
Determine Output:

Question:
void main()
{
      int i=1, j=2;
      switch(i)
      {
            case 1: printf("GOOD"); break;
            case j: printf("BAD"); break;
      }
}

Option A):
None
Option B):
Compiler Error
Option C):
GOOD
Option D):
GOOD BAD

Correct Answer is Option B):
Compiler Error


Failure is the first step towards seccess.

2015-09-17 04:12:12

Advertisement
Ads By Google

Re: Compiler Error:



Board footer