MCQOPTIONS
Saved Bookmarks
| 1. |
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); } |
| A. | 100 100 |
| B. | 101 100 |
| C. | Garbage value |
| D. | Compilation Error |
| E. | None of these |
| Answer» E. None of these | |