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

If ab=cd and a is 25% greater than c, then by what percent d is greater than b?

1 Answers  


can i have the model papers for gate along with answers on my email id krish231191@gmail.com please???

0 Answers  


I have lost my SSC and +2 certificates could i know how to get them, my education is basically from andhra, is there any web site of governament to get my copies since i am outside my state? please any one guide me, thanks in advance

0 Answers  


what is the role of commutator in dc motor

2 Answers   Bhel,


used of viscocity in petrolium

0 Answers   ONGC,


what is the difference between interface and abstract class

0 Answers  


1)what is the abbreviation for DGFS/OCGS for bark written test? 2)how can we know, we r in which category?

1 Answers   BARC,


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  


how to prepare for the gate exam

0 Answers  


WHY SHOULD HAVE NEUTRAL PATH? IS ANY POWER IS IN NEUTRAL? IF YES WER IT BE DELIVERED? IF NO WAT IS THE MEANING OF RETURN PATH

1 Answers  


The famous financial advisor to akbar was

1 Answers   CHS,


THE usable band width of a microwave transponder for 6/4 GHZ satellite communication is generally is.........

0 Answers   BSNL,


Categories