WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("%d%d%d",x,y,z);
}
Answers were Sorted based on User's Feedback
Answer / jasmeet singh
when assigning value to z, x is used with a "post"
decrement. so the original value for the x i.e. 4 is taken
for the calculation and then the decrement is done.
so answer is
4,3,1
Is This Answer Correct ? | 3 Yes | 15 No |
Answer / sandhya
the answer is
4 3 1
because
we have already asigned vale to x&y in begning so directly it will print 4 for x & 3 for y it becomes 3-2=1
Is This Answer Correct ? | 3 Yes | 29 No |
What is the code for following o/p * * * * * * * * * * * * * * * *
which typw of errors ? & how to solve it ?
how to convert decimal to binary in c using while loop without using array
50 Answers Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,
printy(a=3,a=2)
void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..
32 Answers College School Exams Tests, CTS, HCL, iGate, SmartData,
who was the present cheif governor of reserve bank of india
6 Answers State Bank Of India SBI,
Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;
loop1: { x=i<n?(i++):0; printf("%d",i); exit(x); continue; } Error- misplaced continue. Doubt-1.will the exit(x) be executed for all values of x 2.will this statement go out of the program.
UINT i,j; i = j = 0; i = ( i++ > ++j ) ? i++ : i--; explain pls....
WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf("%d%d%d",x,y,z); }
#include<>stdio.h> #include<>conio.h> { printf("hello"); void main() getch(); } what the out put of this program and why ......plz clear my answer
what is syntax error?