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 is the comman name of cis- dichloro Dicyano platinate?

2 Answers   IISc,


hai i need to no hpcl portion i am going to write on march2 so please send to my id satish_don334@yahoo.co.in

0 Answers  


plz send me bhel paper....

0 Answers  


what is internet . explain?

3 Answers   Wipro,


i wanta model of tech. questions.

0 Answers  


Graduate Aptitude Test in Engineering ( GATE ) Question Paper - 2003 COMPUTER SCIENCE & ENGINEERING

7 Answers  


Y Electrical engineerig mainly the supply as sinusoidal otherthan non-sinsoidal?

5 Answers   Infosys,


in vfd why we did not give directac ac supply?

0 Answers  


An air-india plane called ________exploded on the Irish sea on its flight from canada to india

1 Answers  


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

0 Answers  


how to works epbx? how to configuration the epbx?

0 Answers  


Graduate Aptitude Test in Engineering ( GATE ) Question Paper - 2002 COMPUTER SCIENCE & ENGINEERING

2 Answers   IBM,


Categories