void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / buvaneswari
as already told,the precedence wil be from right to left..
so i++ the value wil be still 5 and incremented value wil be stored in memory..
and next ++i now the value of i=5 not considering the memory value...so ++i =6...now the new value of i is 6.this wil be replaced the value 5 in the memory
u can see the expression as i+i in default or consider to be
i=i++ and i=++i....so i+i(ie)6+6=12....
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Where are the auto variables stored?
What is meant by type specifiers?
What is scope and lifetime of a variable in c?
What is a nested loop?
What is the translation phases used in c language?
what is bit rate & baud rate? plz give wave forms
Is there any data type in c with variable size?
Write a program to use switch statement.
Is c object oriented?
i want to know the procedure of qualcomm for getting a job through offcampus
How do you sort filenames in a directory?
What is the use of bitwise operator?
what do you mean by enumeration constant?
How was c created?
What is merge sort in c?