main()
{
int i=5;
printf("%d%d%d%d%d%d",i++,i--,++i,--i,i);
}

Answers were Sorted based on User's Feedback



main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }..

Answer / jishnu mukherjee

the output will be-
45545

but there is a probable mistake in the question...there should be 5 "%d"s instead of 6.if it's 5 ten my

Is This Answer Correct ?    4 Yes 0 No

main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }..

Answer / raja

5 5 4 6 5 5

Is This Answer Correct ?    6 Yes 3 No

main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }..

Answer / ankita

56655

Is This Answer Correct ?    2 Yes 1 No

main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }..

Answer / sanshleo

compile error...

Is This Answer Correct ?    1 Yes 3 No

main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }..

Answer / santosh

its compile error. and this type of questions are compiler
dependent. mean isf sompiler is L to R or R to L.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Electronics Communications Interview Questions

What size of a UPS can support a NetGear ProSafe GS752TP Switch (512.8W), up to 4 hours? What size of battery(s) needed & how many?

0 Answers   Omni Globe International,


i am going to face the gd round for the ues exam ,going to be conducted in our college campus by indian army soon so i just want to know that which kind of technical questions are usually asked in the interview after gd ..???

1 Answers   Indian Military Services,


Why signalling link load should be less than 30% in telecommunication?

0 Answers  


Tell us design gray to binary code converter?

0 Answers  


what will be the effect on device when volotage is below than tht required nd why?

4 Answers  






What is the use of starter and choke in tube

0 Answers   Sukhbir Solar Energy, Wipro,


Explain what are the two mechanisms of breakdown in a p-n junction?

0 Answers  


What is a low-pass filter?

0 Answers  


My present SMPS ( +12V, -12V outputs, 1Amp Rating ) was faulty.I donot have similar model however i have two + 12V SMPS available. Can i use both of these SMPS as a replacement to present SMPS by connecting one of SMPS in reverese polarity.

2 Answers  


Explain what does ce mean..u will see it on almost every chip(ic)?

0 Answers  


what is difference between esd grounding and electerical grounding.standared resistance value between esd grounding and electrical grounding (Plz. give reason also that why we keep this value.

2 Answers   KJ, TATA, Wipro,


Differentiate between intrinsic semiconductors and intrinsic semiconductors?

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)