MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> int main() { int n = 12; void *ptr = &n; printf("%d n", (int)*ptr); return 0; } |
| A. | Compilation Error |
| B. | Garbage value |
| C. | 12 |
| D. | Nothing |
| E. | None of these |
| Answer» B. Garbage value | |