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
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
Can we access the array using a pointer in c language?
How do you determine a file’s attributes?
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 ?
Write programs for String Reversal & Palindrome check
What is function prototype?
What is c system32 taskhostw exe?
How do you define structure?
What is #include called?
Can you subtract pointers from each other? Why would you?
Explain what is a const pointer?
Write a program to print fibonacci series using recursion?
What are the disadvantages of external storage class?
What is conio h in c?
Explain the use of 'auto' keyword