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 #line?
When would you use a pointer to a function?
Explain the meaning of keyword 'extern' in a function declaration.
using for loop sum 2 number of any 4 digit number in c language
Explain output of printf("Hello World"-'A'+'B'); ?
What is static and volatile in c?
how should functions be apportioned among source files?
How can I change their mode to binary?
Write a C program to count the number of email on text
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Difference between Function to pointer and pointer to function
If null and 0 are equivalent as null pointer constants, which should I use?
How can you call a function, given its name as a string?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
explain what are actual arguments?