Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int *p, n = 15;
    p = &n;
    *p += 10;
    printf("%d, %d\n", *p, n);
    }
    1. 15
    2. 10
    3. 25, 25
    4. 15 10
    5. None of these
Correct Option: C

25, 25



Your comments will be displayed only after manual approval.