You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

C Language Basic Quiz Question.

C Programming Quizzes C Language 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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-17 04:00:58

Advertisement
Ads By Google

Re: C Language Basic Quiz Question.



Board footer