what is the output of following question?
int a=5;
printf("%d",a++ + ++a);

Answers were Sorted based on User's Feedback



what is the output of following question? int a=5; printf("%d",a++ + ++a); ..

Answer / thapaswi

12

because

a++=5 then a will be incremented
a become 6

++a=7

answer will 5+7=12

Is This Answer Correct ?    8 Yes 2 No

what is the output of following question? int a=5; printf("%d",a++ + ++a); ..

Answer / fathima2407

a++=5+1=6;
++a=1+5=6;
output=12

Is This Answer Correct ?    4 Yes 1 No

what is the output of following question? int a=5; printf("%d",a++ + ++a); ..

Answer / mani kandan.s

13

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Engineering AllOther Interview Questions

When are the SBI clerk 2010 results are expected???

1 Answers  


I have done BE ( computer science) i secleted in sbi clerical written exam. so what questions they asked according to my subject please send me the answer

0 Answers   State Bank Of India SBI,


find the net id and host id of the following IPV4 117.34.3.8 and 132.57.8.6

0 Answers   Green University of Bangladesh,


What do u mean constructor in java ?

1 Answers  


I am getting the following error,when I am running the script, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. My Script: Itemname=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Print Itemname Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").Select "Itemname" Any Help? Thanks, Uma

0 Answers  






can you provide me uniken pvt ltd. technical interview question and answer?

0 Answers  


what is the pri request of binary search

0 Answers  


i have applied for junior engg. signal II please send me questions papers for it

0 Answers  


reverse a number ( like 1234 into 4321) using malloc in C programming

0 Answers   TCY Online,


can i learn ad. java without learned core java? java is best or .net is best for summer training?

0 Answers  


Describe circular polarization?

2 Answers  


Show the forces acting on a ladder

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)