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 Q is the point of ABCD rectangle where QA=3CM,QB=4CM,and QC=5cm then find the length of QD ?

0 Answers   ICA,


A jet engine works under the principle of

2 Answers   APGenco,


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  


hi i need to no when is tancet notification is going to apper and where .please send the information to my id satish_don334@yahoo.co.in

5 Answers  


I am looking for bank exam coaching in Hyderabad. Can anybody tell me which is the best institute for BANK and which branch is good giving me branch details.

0 Answers  






i have a examination center at nagpur.i have 17 laptops with a server room. my office has the carpet area abt.2000sq.ft to 2500 sq.ft.and my center starts at 9.30a.m. and ends at 8.30 p.m . sunday is off. so my question is that can i get any kind of job in my off days.

0 Answers  


what is internet?

3 Answers   Wipro,


weather any body knows how th partiton of sections in rrb is aote 1,genera nowlge 2,intellgince 3,maths 4,english 5,science

0 Answers  


1, 2, 6, 21, 88, __?

6 Answers   Infosys, Patni, Pratian Technologies, QA, TCS,


CS &IT field

0 Answers  


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

0 Answers  


a capacitor offers easy path to

1 Answers  


Categories