void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / ishrat ali
the calculate of any expression can be done from left to
right,so first i++ compute it means 1st use then increment 5
is used in place of i++ and after using the value of i
increment that is 6.
after that ++i is used that is 1st increment then use in the
expression so now ++i is replaced by 7;
finally 6+7=12 (ans)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
If I have a char * variable pointing to the name of a function ..
Explain how are portions of a program disabled in demo versions?
How to compare array with pointer in c?
What does the file stdio.h contain?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is the meaning of c in c language?
Explain the Difference between the New and Malloc keyword.
How many types of sorting are there in c?
What is the condition that is applied with ?: Operator?
What is the difference between variable declaration and variable definition in c?
What is maximum size of array in c?
What is 'bus error'?
Explain that why C is procedural?
How to write a code for reverse of string without using string functions?
What is the Purpose of 'extern' keyword in a function declaration?