Q:

What is the output?

0

What is the output?

int main()
{
int a = 1, b = 2, c = 3;
int *ptr1 = &a, *ptr2 = &b, *ptr3 = &c;
int **sptr = &ptr1; //-Ref
*sptr = ptr2;
}

  1. ptr1 points to a
  2. Both A and B
  3. ptr1 points to b
  4. None of the above

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

ptr1 points to b

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now
a?b is syntactically correct if... >>
<< Output is...