One, string literal valueString literals are a string of constant characters, which are represented by 0 or more characters in double quotes, and all string literals in C + + are automatically added by the compiler at the end of a null character for
Role of string1 string usage1.1 full use of the string Operator1.2 dazzled string find Functions1.3 string insert, replace, erase 2 string and C-style string3 string and charactor traits4 string recommendations5 Summary6 Appendix preface: Role of
This article uses several postsArticleThe content is slightly modified:
I,
Why can a string be assigned to a character pointer variable in C?
Char * P, A = '5 ';
P = & A; // It is obviously correct,
P = "ABCD"; // but why can I assign a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.