You are not logged in.

#1 2015-09-14 04:29:20

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

Sample Code:

C Programming Quizzes C Language Operators And Expressions

Directions:
What number will z in the sample code given below?

Question:
int z, x=5, y= -10, a=4, b=2;
z = x++ - --y*b/a;

Option A):
11
Option B):
13
Option C):
10
Option D):
12

Correct Answer is Option C):
10


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

2015-09-14 04:29:20

Advertisement
Ads By Google

Re: Sample Code:



Board footer