void main()
{
int i=5;
printf("%d",i+++++i);
}
Answer Posted / shivam shukla
all of you are breaking the statement i+++++i correctly as
i++ + ++i and your answer 12 is also write but you are
explaining it the wrong way......first i++ will make the
value 6 and again a ++i will make it 7 but inn actual
calculation of i++ + ++i....5+7.....will be calculated
hence we get the value 12
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
explain what are pointers?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
How can you find out how much memory is available?
explain what is an endless loop?
What is struct node in c?
Explain what are the different file extensions involved when programming in c?
How to declare pointer variables?
Explain how do you determine whether to use a stream function or a low-level function?
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 the difference between structs and unions in c?
What is wrong with this code?
What are linker error?
Can you explain the four storage classes in C?
How can I ensure that integer arithmetic doesnt overflow?
How many keywords are there in c?