1.

What will be the output of the following C code? #include <stdio.h> int main() { int num = 12; int *ptr = # foo(&ptr); printf("%d ", *ptr); printf("%d ", *ptr); } void foo(int **const ptr) { int k = 13; *ptr = &k; printf("%d ", **ptr); }

A. Undefined-value
B. 13 13 13
C. Compilation Error
D. Segmentation fault/code-crash
E. None of these
Answer» C. Compilation Error


Discussion

No Comment Found