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