Difference between const char *p = “some_string” and const char[] = “some_string” in terms of memory allocation [duplicate]
This question already has answers here:
What is the difference between char array and char pointer in C?
...