void main()
{
int i=5;
printf("%d",i+++++i);
}
Answer Posted / visu
i+++++i=i++ + ++i
remember this expression is nothing but adding two i's
now unary operators hav higher precedence than binary
=>++ executes first
so i++ =5 (since value changes after statement)
and ++i makes it i=6
as i said its jus adding to i's
now ans=i+i=6+6=12
| Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
Explain what are bus errors, memory faults, and core dumps?
What is extern variable in c with example?
Did c have any year 2000 problems?
What is #ifdef ? What is its application?
Can we initialize extern variable in c?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
Is it possible to pass an entire structure to functions?
What is meant by recursion?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
What is structure packing in c?
Write the syntax and purpose of a switch statement in C.
Differentiate between #include<...> and #include '...'
Is c object oriented?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Explain how can type-insensitive macros be created?