void main()
{
int i=5;
printf("%d",i+++++i);
}
Answer Posted / vamsi
Hi Guys.....
The answer is
6+6 = 12
The compiler will take the expression as
i++ + ++i
And the expression would be evaluated from Right to left ...
so answer is 12 and i=7;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is #ifdef ? What is its application?
List some applications of c programming language?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Explain modulus operator. What are the restrictions of a modulus operator?
What is || operator and how does it function in a program?
Write a program to swap two numbers without using third variable in c?
What is volatile, register definition in C
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What are the 4 types of organizational structures?
What is the difference between text and binary i/o?
How can I read a binary data file properly?
Which is better pointer or array?
What is "Duff's Device"?
What are directives in c?
Why is c faster?