MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> int main() { int num[5] = {15, 25, 35, 45, 55}; int *ptr1 = &num[3]; int *ptr2 = &num[4]; ptr2 = ptr2 * 1; printf("%d n", *ptr2); } |
| A. | Garbage value |
| B. | Compilation Error |
| C. | Runtime Error |
| D. | Undefined behaviour |
| E. | None of these |
| Answer» C. Runtime Error | |