MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> int main() { int *ptr1 = (int *)4; int *ptr2 = (int *)6; printf("%d", ptr1 + ptr2); } |
| A. | 4 |
| B. | 6 |
| C. | Compilation Error |
| D. | Garbage value |
| E. | 10 |
| Answer» D. Garbage value | |