main()
{
int i = 10;
printf(" %d %d %d \n", ++i, i++, ++i);
}
Answer Posted / dr. sanyasi naidu pasala
13 11 11
First the value of i was assigned to right most variable ++i. In this first i value which is 10 will be incremented to 11, then assigned to i and printed as 11. Then that 11 is passed to the middle variable which is i++. In this first the value 11 is assigned to i, print the value of i as 11 and then incremented to 12. This 12 is now passed to left most variable ++i. In this the value 12 is first incremented to 13 then assigned to i and print as 13. Even though generally the evaluation will be taken place from right most variable to left most variable, the evaluation process may vary from operating system to operating system.
| Is This Answer Correct ? | 27 Yes | 11 No |
Post New Answer View All Answers
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
Are pointers integer?
When we use void main and int main?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Why c is called procedure oriented language?
What does s c mean on snapchat?
Is c high or low level?
What are the c keywords?
Write a program to reverse a linked list in c.
When is a void pointer used?
What is main function in c?
What do you mean by Recursion Function?
What is the use of header?
what are the facialities provided by you after the selection of the student.
When a c file is executed there are many files that are automatically opened what are they files?