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

10



Your comments will be displayed only after manual approval.