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

Answers were Sorted based on User's Feedback



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

Answer / sachin

ans :11
how?
-> i++ => i=i+1 => i=6;

-> ++i => i=i =>i=5(first assign the value);
i=i+1;

so i++ + ++i=6 + 5=11 i.e.ans

Is This Answer Correct ?    3 Yes 31 No

Post New Answer

More C Interview Questions

What is else if ladder?

0 Answers  


how to construct a simulator keeping the logical boolean gates in c

0 Answers  


what is the main use of c where it can use the c

2 Answers   Infosys,


What is a const pointer?

0 Answers  


In a byte, what is the maximum decimal number that you can accommodate?

0 Answers  






Why we use stdio h in c?

0 Answers  


What is the Difference between Class and Struct?

10 Answers   Motorola,


What is main function in c?

0 Answers  


Mention four important string handling functions in c languages .

0 Answers  


Can include files be nested? How many levels deep can include files be nested?

0 Answers   Aspire, Infogain,


write a program to print the all 4digits numbers & whose squares must me even numbers?

2 Answers   Virtusa,


Explain the advantages and disadvantages of macros.

0 Answers   TCS,


Categories