Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void fun(int*);
    int main()
    {
    int n = 14, *ptr = &n;
    fun(ptr++);
    }
    void fun(int *ptr)
    {
    printf("%d\n", *ptr);
    }
    1. 0.000000
    2. Compilation Error
    3. 14.000000
    4. Runtime Error
    5. None of these
Correct Option: A

0.000000



Your comments will be displayed only after manual approval.