Answer :

Answer:

90 is the output for the above program segment.

Explanation:

  • 90 will be the value for the n variable. It is because the "xfunction()" takes the address of the n variable as an argument.
  • Then the "xfunction()" changes the value of the address of n variable.
  • It is because the address of the n variable is addressed by the n pointer variable of integer type in "xfunction()".
  • And, then the first statement of the "xfunction()" changes the value to be 75 of n variable by the help of its address.
  • And then the second statement of the "xfunction()" assigns the value 90 to the address position of n variable.
  • And hence the output will be 90 when the user prints the value of n variable.

Other Questions