C Programming :: Pointers - Discussion
Home > C Programming > Pointers > MCQs Questions Discussion
35 / 60
What will be the output of the following program?
#include <stdio.h>
int main() {
int x=30, *y, *z;
y = &x; /* Assume address of x is 500 */
z = y;
*y= *z;
x++;
printf("x=%d, y=%u, z=%u\n", x, *y, z);
return 0;
}
#include <stdio.h>
int main() {
int x=30, *y, *z;
y = &x; /* Assume address of x is 500 */
z = y;
*y= *z;
x++;
printf("x=%d, y=%u, z=%u\n", x, *y, z);
return 0;
}
Ax=31, y=502, z=502
Bx=30, y=500, z=500
Cx=31, y=498, z=498
Dx=31, y=500, z=500
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!