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

What are logical errors and how does it differ from syntax errors?

663


What type is sizeof?

588


How do you generate random numbers in C?

663


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

640


Multiply an Integer Number by 2 Without Using Multiplication Operator

326






c program for searching a student details among 10 student details

1659


What functions are used in dynamic memory allocation in c?

599


What is the full form of getch?

587


Do you know what are bitwise shift operators in c programming?

589


What is a header file?

640


Is c still used?

606


What are extern variables in c?

551


What are the 4 types of organizational structures?

627


What is the purpose of void pointer?

603


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

650