void main()
{
int i=5;
printf("%d",i++ + ++i);
}

Answer Posted / pnkj rajput@kiit,bbsr

Ans. is

12

because

(first check) i++ (no change in the value of 'i' so i=5)

(second check) ++i ('i' increase by 1 so, i=6)

Now, in this the value of 'i' is 6

so, 6 + 6 = 12

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

665


Can we access the array using a pointer in c language?

563


How do you determine a file’s attributes?

602


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

804


Write programs for String Reversal & Palindrome check

596






What is function prototype?

611


What is c system32 taskhostw exe?

592


How do you define structure?

567


What is #include called?

568


Can you subtract pointers from each other? Why would you?

558


Explain what is a const pointer?

640


Write a program to print fibonacci series using recursion?

585


What are the disadvantages of external storage class?

592


What is conio h in c?

624


Explain the use of 'auto' keyword

679