-
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);
}
-
- Compilation Error
- Same memory address is printed
- Different memory address is printed
- Nothing
- None of these
Correct Option: B
Same memory address is printed