The interviewer's question involves a typo, as the "?" operator is not semantically valid. Assuming the typographical error, we can interpret the intended question:
What is the difference between "char a[] = "string";" and "char *p = "string";"?
Arrays vs. Pointers
The primary difference between these declarations lies in the data structure they create:
The above is the detailed content of What's the Difference Between `char a[] = 'string';` and `char *p = 'string';`?. For more information, please follow other related articles on the PHP Chinese website!