what is the output of the following program?
#include<stdio.h>
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
}
Answers were Sorted based on User's Feedback
Answer / poorna
Ans:3 3 1
bcoz
z=4-- -3; z=4-3;
z=1;
and x=3
there fore answer is 3 3 1
| Is This Answer Correct ? | 42 Yes | 5 No |
Answer / ravi chandra
x=4
y=3
z=x-- -y;
x-- means at first the left hand value will be equal to x
i.e., z=x and then the value of x gets decrement..
z=x-- -y
z=4-- -3
z=4-3 and x=x-1
z=1 and x=3
the y value remains same y=3
therefore x=3 y=3 and z=1
| Is This Answer Correct ? | 9 Yes | 0 No |
though sbi was nationalized why its not comes under nationalized banks and its comes under publicsector banks
3 Answers State Bank Of India SBI,
what is the use of ‘auto’ keyword?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
List the difference between a "copy constructor" and a "assignment operator"?
What is the scope of global variable in c?
A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.
How does struct work in c?
why wipro wase
What is the difference between big endian form and little endian form? write a code to convert big endian form to little endian and vice versa..
What is indirection?
What is the heap in c?
What standard functions are available to manipulate strings?