void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / ishrat ali
the calculate of any expression can be done from left to
right,so first i++ compute it means 1st use then increment 5
is used in place of i++ and after using the value of i
increment that is 6.
after that ++i is used that is 1st increment then use in the
expression so now ++i is replaced by 7;
finally 6+7=12 (ans)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can this be legal c?
Where does the name "C" come from, anyway?
Explain c preprocessor?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is the purpose of macro in C language?
what do u mean by Direct access files? then can u explain about Direct Access Files?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Explain 'bit masking'?
What is mean by data types in c?
When would you use a pointer to a function?
Was 2000 a leap year?
What are volatile variables in c?
What is the symbol indicated the c-preprocessor?
int far *near * p; means