You are not logged in.

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

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:
#define int char
void main()
{
      int i = 65;
      printf("sizeof(i)=%d", sizeof(i));
}

Option A):
None
Option B):
Compiler Error
Option C):
sizeof(i)=2
Option D):
sizeof(i)=1

Correct Answer is Option D):
sizeof(i)=1


Failure is the first step towards seccess.

2015-09-17 04:01:00

Advertisement
Ads By Google

Re: C Language Basic Quiz Question.



Board footer