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);
Answer Posted / suresh mca
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 |
Post New Answer View All Answers
Write a program to swap two numbers without using the third variable?
Are the expressions * ptr ++ and ++ * ptr same?
Write a function that will take in a phone number and output all possible alphabetical combinations
What is function prototype in c with example?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
How a string is stored in c?
What does typeof return in c?
write a program to copy the string using switch case?
Can stdout be forced to print somewhere other than the screen?
Why is structure padding done in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is a good way to implement complex numbers in c?
Can we declare variable anywhere in c?
how can I convert a string to a number?