#include<stdio.h>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}
Answer Posted / nb
i = 2 (i dont change)
j = 6 (++i = 3 and in i++ increments after calculating j )
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
Can a local variable be volatile in c?
How the c program is executed?
What are type modifiers in c?
What are the loops in c?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Explain about block scope in c?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What are pointers?
What is maximum size of array in c?
What is || operator and how does it function in a program?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
What is c language used for?
How can I change the size of the dynamically allocated array?
How can you access memory located at a certain address?