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

12



Your comments will be displayed only after manual approval.