#include<stdio.h>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}
Answer Posted / rajesh kumar mahto
i=5 and j=11 (100% correct answer)
this is because
j=5+4+2(right to left execution)
i=5 due to latest updation of i.
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
What are pointers? What are stacks and queues?
What is the purpose of main() function?
Does free set pointer to null?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What is wrong in this statement? scanf(ā%dā,whatnumber);
Explain what does a function declared as pascal do differently?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
how logic is used
What is advantage of pointer in c?
Why is it that not all header files are declared in every C program?
What are the standard predefined macros?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above