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

Why 6.6kw motor star connectet delta not connected

1 Answers   Indian Bank,


in which state of india has no panchayatraj

0 Answers  


how the use of power factor correction will rsult in monthly tariff saving?

2 Answers   SNI, TCS,


Hi friends. I am priyanka, applied for management trainee posts in vsp. If any body knows, the exam pattern pls post the answer. Thank U

1 Answers   Punjab National Bank,


WHO IS INVITED WIRELESS FIDELITY TECHNOLOGY

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  


can u explain me the way to know the relation between the active as well as the reactive power acting on an electical machine under the under excitation as well as over excitation mode

0 Answers   Siemens,


difference between pvc and gi pipes?

0 Answers  


hiii everybody, Am poor in aptitute, how can i overcome this problem? can any body give me some tips and sugessions plzzzzzzz.

3 Answers   Infosys,


please send me NTPC previous papers on my email ID 18amarjeet.civil@gmail.com or mr.yadav143@gmail.com

0 Answers  


A new group of countries called BASIC is frequently mentioned in the news. which of the following is not one of them? (a) Argentina (b) Brazil (c) India (d) South Africa

2 Answers  


what will the output of this program. sint a=10,b; b=a++ + ++a; printf("%d,%d,%d,%d",b,a++,a,++a)

0 Answers  


Categories