[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Pointers - Discussion

Home > C Programming > Pointers > MCQs Questions Discussion

34 / 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;
}

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 :: Wipro Societe Generale

Post Your Answer Here:     

No Discussion on this question yet!