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
What is null in c?
Explain high-order and low-order bytes.
Without Computer networks, Computers will be half the use. Comment.
What is hash table in c?
How do I get a null pointer in my programs?
How can I get back to the interactive keyboard if stdin is redirected?
Tell me when would you use a pointer to a function?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
How was c created?
By using C language input a date into it and if it is right?
How can you find the day of the week given the date?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
what is different between auto and local static? why should we use local static?
The __________ attribute is used to announce variables based on definitions of columns in a table?
What is the explanation for prototype function in c?