#include<stdio.h>
int main(){
int a=5;
printf("%d %d %d",a++,a++,++a);
return 0;
}..please explain me output 7 6 8..Thnx in advance



#include<stdio.h> int main(){ int a=5; printf("%d %d %d",a++,a++,++a); ..

Answer / abhijeet ankush gate rank 416

correct output is 766
explaination
printf function is right associative and starts reading from
right which is ++a.
in ++a value is 1st incremented and then printed
in a++ value is 1st printed and then incremented...

Is This Answer Correct ?    10 Yes 11 No

Post New Answer

More Engineering AllOther Interview Questions

what is test initiation criteria in software testing

2 Answers   CybAge, Seed Infotech,


discus the worst and best case complexity of binary search

0 Answers  


for us visa interiew which file i have to carry(for example :folder file,gip file or other).please give me the answer .becoze the us consulate asks my documents, tommorow morning my interview so please grant me answer

1 Answers   US Consulate,


1. Design a counter which counts 0, 4, 8, 2, 6, and repeats using: 1.a using JK flip flops 1.b using T flip flops 1.c using D flip flops 2. Modify your design in question 1.a so that the circuit works according to the following function table X Y F 0 0 Clear 0 1 No Change 1 0 Parallel Loading 1 1 Count 3. Design a circuit that detects the pattern 010 in a serial input X considering: 3.a Overlapping 3.b No overlapping

0 Answers  


What is the dewpoint of atmoshperic Air?

0 Answers  






Explain a situation in which you handled a customer?s questions or problems?

0 Answers   Kplus Infotech,


can u tell me what are the subjects involved in group I and II and how i prepare for the exam

0 Answers  


wat is the process of civil services examination...I want to become DSP....Is civil services and APPSC are sam???first of all for wat we have to prepare...for prelimnary or for mains or for nterview...i dont know any thing...please help me...arun.kanduri@gmail.com

1 Answers  


How do you reset or reseed the IDENTITY column?

0 Answers  


What were the most energizing/enjoyable aspects of your job in this given period?

0 Answers  


Write a c pgm to print the letter as per given condition i.e.. if u give 4 out put should b 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4

0 Answers   Veritas,


what is the difference between load bearing and non load bearing walls

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4452)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • 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)