#include<stdio.h>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}
Answer Posted / ashok reddy
intially i=2
j=++i + ++i + i++;
in this statament it calculates from r-l
so j=5+4+2
and the last value of i is 5
so i=5 and j=11
is the correct answer
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Do string constants represent numerical values?
Difference between malloc() and calloc() function?
What does the file stdio.h contain?
How can I prevent another program from modifying part of a file that I am modifying?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
How many types of operators are there in c?
What is the explanation for cyclic nature of data types in c?
Why is c not oop?
What is the advantage of c?
Is it possible to pass an entire structure to functions?
#include
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b