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
How can you allocate arrays or structures bigger than 64K?
What type of function is main ()?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
to find the closest pair
Can a variable be both const and volatile?
How many types of operators are there in c?
What are the types of unary operators?
Explain what is the concatenation operator?
Explain data types & how many data types supported by c?
What's the best way of making my program efficient?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Can we declare function inside main?
Explain how do you generate random numbers in c?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..