Home > Back-end > How to understand the following passage, brothers
How to understand the following passage, brothers
Time:04-14
Use string constants in program generates a pointer to the character constants, when a string constants in an expression, the expression of the value is used by these characters stored address, rather than the characters themselves,
CodePudding user response:
If there is any example, brothers
CodePudding user response:
For example:
const char * STR="helloworld";//this assignment (=) the value of the expression is a string constant address assigned to the STR