You are not logged in.

#1 2015-09-15 05:49:44

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

Digit Value:

C Programming Quizzes C Language Control Structures

Directions:
What will be the final value of the digit?

Question:
void main()
{
   int digit = 0;
   for( ; digit <= 9; )
   digit++;
   digit  *= 2;
   --digit;
}

Option A):
12
Option B):
14
Option C):
51
Option D):
19

Correct Answer is Option D):
19


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

2015-09-15 05:49:44

Advertisement
Ads By Google

Re: Digit Value:



Board footer