MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the program?_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ int arr[3] = {2, 3, 4};_x000D_ char *p;_x000D_ p = arr;_x000D_ p = (char*)((int*)(p));_x000D_ printf("%d, ", *p);_x000D_ p = (int*)(p+1);_x000D_ printf("%d", *p);_x000D_ return 0;_x000D_ } |
| A. | 2, 3 |
| B. | 2, 0 |
| C. | 2, Garbage value |
| D. | 0, 0 |
| Answer» C. 2, Garbage value | |