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

hi all I got two exam call letter one from maha ganeco & other from federal bank both at same time & same date which should i choose (note I am eng. grad.)

0 Answers   Federal Bank,


Guys! I coplted 10th with 80% and +2 with 64% now am dng c.s.e b.tech...i want to go abroad for higher studies i want to write tofel...plZ GIVE UR SUGGESTIONS!

0 Answers  


what is advantages and disadvantages of vlan?

0 Answers  


differences between pass by reference and pass by value in c language?

0 Answers  


what is the purpose of expansion tank in closed cooling water system?

3 Answers  






who to change a passward in router?

0 Answers   iLogic,


Explain momentum?

0 Answers  


If navara d40 injektor damage.what is the problem when we drive??

0 Answers  


Hi all, Pls find the bellow mentioned interview questions related to hp-unix. 1. Job Scheduling; mainly crontab, at, batch command 2. Backup stetegy; incremental, full system back up; diff between tar & ufsdump 3. diff between hard link & softlink 4. How to list only the directories inside a directory (Ans. ls -l|grep "^d") 5. RAID levels; pros & cons of diffrent levels; what is RAID 1+0 6. How to recover a system whose root password has lost? 7. What is a daemon? 8. How to put a job in background & bring it to foreground? 9. What is default permissions for others in a file? 10. Questions on shell initialization scripts? 11. Questions on restricted shell 12. What is diff betwn grep & find? 13. What is egrep? 14. Questions on shell programming 15. What is a pipe? 16. Questions on Solaris patch management like pkgadd etc Thnaks & Regards Biswanath Das Email ID:biswanath_das84@yahoo.com

0 Answers   TCS,


A bar of steel 24 mm in diameter was subjected to a tensile load of 60 kNs and measured extension on a 20-cm gauge length was 0.009 cm and the change in diameter was 0.00375 cm. Calculate the Bulk modulus?

0 Answers  


I am going to HAL Online test for Computer Science. Can you please mail me the model question papers ?

0 Answers   HAL,


A sheet of paper has statements numbered from 1 to 30. For all values of n from 1 to 30, statement n says "At most n of the statements on this sheet are false". Which statements are true and which are false? a) All statements are true. b) All statements are false. c) The odd numbered statements are true and the even numbered are false. d) The even numbered statements are true and the odd numbered are false.

7 Answers   TCS,


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)