Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What does char *s={"abc"} mean in C language? ! Online waiting ...
What does char *s={"abc"} mean in C language? ! Online waiting ...
Usually writing:

char s[]= { " ABC " };

Declare a character array s[], initialize it, and store the string "abc" in it.

And char * s = {"ABC" };;

Declare a character pointer S pointing to the string "abc" in the memory where the source program is located.