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 |
what is the advantage of software development
How can a process change an environment variable in its caller?
What is wrong with this program statement?
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
What are conditional operators in C?
Where in memory are my variables stored?
Explain what is the advantage of a random access file?
What is a structural principle?
Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates
What are the advantages of the functions?
#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }