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


Please Help Members By Posting Answers For Below Questions

How can I access an I o board directly?

624


Which header file is used for clrscr?

582


What are header files? What are their uses?

640


Explain high-order and low-order bytes.

667


What is the use of ?: Operator?

667






what is the structure pointer?

1644


What does %2f mean in c?

675


Is it acceptable to declare/define a variable in a c header?

688


Explain what is the general form of a c program?

624


What is huge pointer in c?

585


Explain what is the difference between the expression '++a' and 'a++'?

627


Explain the use of 'auto' keyword

679


What does dm mean sexually?

814


What is the importance of c in your views?

596


What is use of pointer?

587