Q. What is the output of C Program with String Pointers?
Code:
int main()
{
char *p1 = "GOAT";
char *p2;
p2 = p1;
printf("%s", p2);
}
β
Correct Answer: (B)
GOAT