Question discussion

What is the output of the following C code? int x = 5; int *p = &x; *p = *p + 10; printf("%d", x);

151Medium DSSSB TGT Computer Science 0 replies 1 views
0
What is the output of the following C code? int x = 5; int *p = &x; *p = *p + 10; printf("%d", x);
  • A5
  • B10
  • C15
  • DCompilation error
Correct answer: C

Discussion 0

Nobody has replied yet. Start the discussion!