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
Is fortran still used today?
Is javascript based on c?
How can a program be made to print the name of a source file where an error occurs?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What is wrong with this declaration?
What is difference between far and near pointers?
What is 02d in c?
Is c still relevant?
Explain how do you view the path?
how to execute a program using if else condition and the output should enter number and the number is odd only...
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What is linear search?
What is strcmp in c?
Explain what is #line used for?
how many errors in c explain deply