You are not logged in.

#1 2015-09-14 05:44:37

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

Code Fragment:

C Programming Quizzes C Language Operators And Expressions

Directions:
What will be the output of the following code fragment?

Question:
void main()
{
   printf("%x",-1<<4);
}

Option A):
fff1
Option B):
fff4
Option C):
fff0
Option D):
fff2

Correct Answer is Option C):
fff0


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

2015-09-14 05:44:37

Advertisement
Ads By Google

Re: Code Fragment:



Board footer