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
What is struct node in c?
How can I handle floating-point exceptions gracefully?
Is multithreading possible in c?
how many key words availabel in c a) 28 b) 31 c) 32
Is there any demerits of using pointer?
Are bit fields portable?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is the use of bit field?
What is the Purpose of 'extern' keyword in a function declaration?
What is the difference between struct and typedef struct in c?
What is the explanation for the dangling pointer in c?
Did c have any year 2000 problems?
What is a pointer in c?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Explain can you assign a different address to an array tag?