Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int k = 20, L = 25;
    int *num[] = {&k, &L};
    printf("%d ", (*num)[1]);
    return 0;
    }
    1. Compilation Error
    2. 25
    3. 20
    4. Garbage value
    5. None of these
Correct Option: D

Garbage value



Your comments will be displayed only after manual approval.