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 |
Can we add pointers together?
What is modifier & how many types of modifiers available in c?
what is difference between null and nul in c language
What is bin sh c?
What are the modifiers available in c programming language?
Explain the array representation of a binary tree in C.
explain what are pointers?
When can you use a pointer with a function?
What is the purpose of type declarations?
related proverb of "dont count your chicken before it hatches"
Why shouldn’t I start variable names with underscores?
What are header files? What are their uses?