#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
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Define macros.
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is local and global variable in c?
What is non linear data structure in c?
What is variables in c?
What is #define size in c?
What is a char c?
Is c procedural or object oriented?
Why calloc is better than malloc?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
a program that can input number of records and can view it again the record
Why flag is used in c?
What are pointers? What are different types of pointers?
What is dynamic dispatch in c++?