You are not logged in.

#1 2015-09-17 04:01:42

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

C Language Basic Quiz Question.

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

Directions:
Determine Output:

Question:
void main()
{
      int i=3;
      switch(i)
      {
            default: printf("zero");
            case 1: printf("one"); break;
            case 2: printf("two"); break;
            case 3: printf("three"); break;
      }
}

Option A):
zero
Option B):
None
Option C):
Error
Option D):
three

Correct Answer is Option D):
three


Failure is the first step towards seccess.

2015-09-17 04:01:42

Advertisement
Ads By Google

Re: C Language Basic Quiz Question.



Board footer