what is the Output?
int a=4 b=3;
printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++);
printf("%d%d%d%d%d%d",b--,b--,--b,b--,--b,--b);
Answers were Sorted based on User's Feedback
Answer / arun sebastin
9 9 7 6 6 4
-2 -1 -1 1 1 2
The conceptis simple dothe operation in reverse
| Is This Answer Correct ? | 9 Yes | 2 No |
output
997664
-2-1-1112
here the concept is very is....
the work flow of the printf statement is right to left
and display of the statement is left to right.......
thats all very simple logic
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / dumitru
in Open Suse the result is:
9 10 7 6 10 4
-2 -1 -3 1 -3 -3
| Is This Answer Correct ? | 2 Yes | 4 No |
Answer / vinod kumar
in fedora it is giving
91076104
-2-1-31-3-3
but dont know how
| Is This Answer Correct ? | 0 Yes | 5 No |
How can I find the modification date and time of a file?
Explain what is the difference between a string and an array?
What tq means in chat?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
Why is c called c not d or e?
which operator having lowest precedence?? a.)+ b.)++ c.)= d.)%
What is encapsulation?
What is string concatenation in c?
How many types of functions are there in c?
Can you mix old-style and new-style function syntax?
Difference between MAC vs. IP Addressing
plz answer..... a program that reads non-negative integer and computes and prints its factorial