#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
Answer Posted / 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 View All Answers
if a customer's blackberry stopped syncing their calendar wirelessly what would you do?if a customber deleted mail from his blackberry but it did delete from his mailbox how would ypu resolve this
sir , i am prparing for IOCL engineergin post please send me the old placement papers
I am an Electrical engineering ( electrical back round ) ,can i get hvac Water system design details to easy understand ,i am working past 15years in Pharmaceuticals company with Engineering depart.
What experience have you had in working with field forces?
c# code, vb.net code language parity refers to what?
Suppose you want to form a conceptual model of UML.What elements would you require for this purpose?
hi... i just want to know that how could join the AAI with an B.E back ground??? please help me out.
what are the differences between one dimensional ram and two dimensional ram?
funtionalities of loadining and linking
15. What is your Future Plans for the Company if Permanently Employed?
what is need of interface. what is the diff b/w interface and abstract class
what is the difference between verification and validation
i possess a little knowledge of core java . so is it will be difficult for me to start advanced java?
Explain diffrent parts of an instruction format.
Sketch a velocity time graph for a skydiver jumping out of a plane.