-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int n = 101;
int *ptr = &n;
fun(&ptr);
printf("%d ", *ptr);
}
void fun(int *const *ptr)
{
int k = 100;
*ptr = &k;
printf("%d ", **ptr);
}
-
- 100 100
- 101 100
- Garbage value
- Compilation Error
- None of these
Correct Option: D
Compilation Error