#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
Explain what’s a signal? Explain what do I use signals for?
Write a program on swapping (100, 50)
Can include files be nested? How many levels deep can include files be nested?
Why is structure padding done in c?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Explain continue keyword in c
Explain what are header files and explain what are its uses in c programming?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What are the different types of constants?
What is a built-in function in C?
What is the difference between ‘g’ and “g” in C?
Explain the properties of union. What is the size of a union variable
What does %d do?
Explain the use of fflush() function?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1