MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code? #include <stdio.h> void main() { char *ptr1 = "Interview Mania"; char *ptr2 = ptr1; printf("%p %p", ptr2, ptr1); } |
| A. | Compilation Error |
| B. | Same memory address is printed |
| C. | Different memory address is printed |
| D. | Nothing |
| E. | None of these |
| Answer» C. Different memory address is printed | |