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 optimum frequency of an electronic choke?

1 Answers  


what is the function of external oscillator in 8051 microcontroller

1 Answers   CTS, DRDO,


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

1 Answers  


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

2 Answers  


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

1 Answers   NIC,


What is the broadcast address of the subnet address 172.16.8.159 255.255.255.192

2 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  


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

2 Answers  


void main() { int x=4,y,z: y=--x; z=x--; } what is the output

4 Answers   DELL,


I have cleared sbi clerk and have interview in 26/04/2010.But I am M.Ed & B.Ed,i want to u know my answed about not chose the teaching post

0 Answers  


Which of the following is true regarding 2 switches? (Choose two)

2 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,


Categories