void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / abhijeet dongre
I HAVE PRACTICED MANY ASPECTS OF THESE QUESTIONS
THING IS THAT
PRINTING VALUES IS FROM RIGHT TO LEFT.
SOLVING AN EXPRESSION IS FROM LEFT TO RIGHT.
SOME SAMPLE OUTPUTS:-(TRY IT)
int i=5;
printf("%d",i++ + ++i); 12(5+7 only)(not 6+6)
int i=5;
printf("%d",i++ * ++i); 35(5*7 only)(not 6*6)
int i=5;
printf("%d %d",i++ + ++i,i); 12 5
int i=5;
printf("%d",i++ + i++); 11 7
printf(" %d",i);
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
Can stdout be forced to print somewhere other than the screen?
What are the disadvantages of external storage class?
I heard that you have to include stdio.h before calling printf. Why?
What language is c written?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is openmp in c?
What’s a signal? Explain what do I use signals for?
What is static function in c?
Can you write the function prototype, definition and mention the other requirements.
What is #define in c?
How do you do dynamic memory allocation in C applications?
What is data type long in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
What are the two types of structure?
Can I initialize unions?