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
What is boolean in c?
Explain how can I pad a string to a known length?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
Does c have function or method?
Write a code to generate divisors of an integer?
How can I remove the trailing spaces from a string?
What is the function of volatile in c language?
What are formal parameters?
What is a null pointer in c?
How to create struct variables?
Differentiate between a structure and a union.
What are the scope of static variables?
How do I get a null pointer in my programs?
Explain what are header files and explain what are its uses in c programming?
Explain enumerated types.