You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Sample Code:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … xpressions

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


Failure is the first step towards seccess.

2015-09-14 04:29:23

Advertisement
Ads By Google

Re: Sample Code:



Board footer