main()
{
int i = 10;
printf(" %d %d %d \n", ++i, i++, ++i);
}
Answer Posted / dhivya
11 11 13
++i which means i is first incremented and then printed thus i value becomes 11,
i++ which means i is printed and then it is incremented, since the value of i is now 11, it is printed and then incremented to 12.
again ++i , increments i to 13 and then prints.
| Is This Answer Correct ? | 66 Yes | 38 No |
Post New Answer View All Answers
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is switch in c?
What is pointers in c with example?
Explain the advantages and disadvantages of macros.
Do pointers store the address of value or the actual value of a variable?
What is sizeof return in c?
What is difference between union and structure in c?
Simplify the program segment if X = B then C ← true else C ← false
What is the equivalent code of the following statement in WHILE LOOP format?
what is bit rate & baud rate? plz give wave forms
How can you avoid including a header more than once?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What are different types of pointers?
In a switch statement, explain what will happen if a break statement is omitted?