void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / koushik ramesh
this program output is 12.
first is i++ is 5 only because this the post increment
first using the value after increment.
whenever i++ + the value of is 6.
++ i means this is the pre-increment.first increment
the value after using the variable this step i will become
7.
total is i++ =5
i++ + =6
++ i=7
i++ + ++i= 12. this is posted by Ramesh(MCA)Nizam
college.HYDERABAD
Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
How can I access an I o board directly?
Which header file is used for clrscr?
What are header files? What are their uses?
Explain high-order and low-order bytes.
What is the use of ?: Operator?
what is the structure pointer?
What does %2f mean in c?
Is it acceptable to declare/define a variable in a c header?
Explain what is the general form of a c program?
What is huge pointer in c?
Explain what is the difference between the expression '++a' and 'a++'?
Explain the use of 'auto' keyword
What does dm mean sexually?
What is the importance of c in your views?
What is use of pointer?