Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


void main()
{ int x=4,y,z:
y=--x;
z=x--;
}
what is the output

Answers were Sorted based on User's Feedback



void main() { int x=4,y,z: y=--x; z=x--; } what is the output..

Answer / praveen kumar d

no output because no printf()
if we print y and z
the output is :
y=3
z=3

Is This Answer Correct ?    28 Yes 4 No

void main() { int x=4,y,z: y=--x; z=x--; } what is the output..

Answer / narayanan

Y=3 \ initially Y=0 then Y = --x Decremented then assigning value so Y=3

Z=3 \z = x-- assigning x value to z first then Decremented so Z=3

Is This Answer Correct ?    7 Yes 1 No

void main() { int x=4,y,z: y=--x; z=x--; } what is the output..

Answer / sowmya

What will be the value of x

Is This Answer Correct ?    3 Yes 0 No

void main() { int x=4,y,z: y=--x; z=x--; } what is the output..

Answer / nirmal

y=3
z=2

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More GATE Interview Questions

can i knw what are we supposed to read for the coming oces/dgfs 2009 exam?what kind of book are we supposed to study?

1 Answers   BARC,


plz give me link or set of MAHAGNCO entance ques. papers

0 Answers  


what is inflationWhat is Inflation? How can we calucalate inflation? and what is the present rate of Inflation?

1 Answers  


send the instrumentation branch model question paper at the last year paper

1 Answers   HPCL,


what is the function of external oscillator in 8051 microcontroller

1 Answers   CTS, DRDO,


Can some1 please mail me the question papers of iiit hyderabad...my mail id is cenablogspot@gmail.com

0 Answers  


dear sir, pls provide me a placement paper for hpcl exam for mechanical exam. this is a request pls do the needful as early as possibl my mail id is suneel.2003@yahoo.com

0 Answers  


can u please send me IIIT M.Tech entrance question paper?

1 Answers   IIIT,


ben finishes his work in 8 days. frank works 3 times faster than ben.james works 5 times faster than ben.How many days will it take for them to finish the job together?

1 Answers  


Why 6.6kw motor star connectet delta not connected

1 Answers   Indian Bank,


sir , please send me previous gate ece questionpapers with explanations.i want 15 years of gate ece question papers

0 Answers  


Find a five digit number subject to following conditions 1.It contains 2 prime no digits 2.3rd digit is the lagest. 3.1st digit = (3 rd digit - 1). 4.Sum of 4th digit and 5th digit is less than 1st digit. 5.Value of the 5th digit lies between the value of 1st digit and 2nd digit, 5th digit is one half of the 4th digit.

1 Answers  


Categories