#include<stdio.h>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}
Answer Posted / nb
i = 2 (i dont change)
j = 6 (++i = 3 and in i++ increments after calculating j )
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
What is the difference between ++a and a++?
What is the difference between exit() and _exit() function in c?
What is the use of sizeof () in c?
Can you subtract pointers from each other? Why would you?
Is the exit() function same as the return statement? Explain.
How can a program be made to print the line number where an error occurs?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Is main a keyword in c?
What is the use of getch ()?
What is a dynamic array in c?
Which is the best website to learn c programming?
Is multithreading possible in c?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is bash c?