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

what are the types of threads ?

1 Answers  


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

1 Answers  


what is the role of commutator in dc motor

2 Answers   Bhel,


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  


ravi is 7 ranks ahead of sumit in a class of 30 students. if sumit rank is 17 from the last, what is the ravi from the start?

2 Answers   State Bank Of India SBI,


how to prepare gate in a week

2 Answers   GATE,


Why 6.6kw motor star connectet delta not connected

1 Answers   Indian Bank,


could u send me the model papers for drug inspector exam at imrupinder@gmail.com

0 Answers  


please send me previous year question papers of andhra and indian banks soon. Plz give the details of syllabus and reference book to follow. Thanks in advance

0 Answers   Indian Bank,


what is monetary policy

0 Answers  


a guy hired 5 men to work on a project and they completed the job in 13 days. IF, on the 4th day, 2 men resigned, then how long would they complete the job?

1 Answers   IBM,


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

0 Answers  


Categories