Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int n = 0;
    int *p = &n;
    printf("%p\n", p);
    p++;
    printf("%p\n ", p);
    }
    1. Compilation Error
    2. Different memory address
    3. Garbage value
    4. Same memory address
    5. None of these
Correct Option: B

0x7ffc391e1404
0x7ffc391e1408



Your comments will be displayed only after manual approval.