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 are logical errors and how does it differ from syntax errors?
What type is sizeof?
How do you generate random numbers in C?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
Multiply an Integer Number by 2 Without Using Multiplication Operator
c program for searching a student details among 10 student details
What functions are used in dynamic memory allocation in c?
What is the full form of getch?
Do you know what are bitwise shift operators in c programming?
What is a header file?
Is c still used?
What are extern variables in c?
What are the 4 types of organizational structures?
What is the purpose of void pointer?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none