MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> int main() { void *ptr1; int num[5] = {10, 20, 30, 40, 80}; ptr1 = &num[4]; int *ptr2 = &num[3]; int R = ptr1 - ptr2; printf("%d n", R); } |
| A. | 80 |
| B. | 40 |
| C. | 30 |
| D. | 20 |
| E. | Compilation Error |
| Answer» B. 40 | |