MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code? #include <stdio.h> int main() { int num[5] = {11, 21, 31, 41, 51}; int ptr[5]; ptr = num; printf("%d n", ptr[2]); } |
| A. | Undefined behaviour |
| B. | Garbage value |
| C. | Compilation Error |
| D. | 51 |
| E. | None of these |
| Answer» D. 51 | |