#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
What is the difference between scanf and fscanf?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Is c easy to learn?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Explain null pointer.
What are the ways to a null pointer can use in c programming language?
Why c language is called c?
What are the various types of control structures in programming?
What are the different types of endless loops?
What is an auto variable in c?
Which is best book for data structures in c?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is the use of sizeof?
What is array of structure in c programming?
What are the advantages and disadvantages of pointers?