The book I am using refers to CHAR, and I understand this pretty well.
But there is code in the book the states CHAR* and no where do I find
An explanation for this, can you help…… jim
It is commonly used for strings. When you use a string literal for something like cout << "asdf", it sees the string as only a pointer to the first character. cout then goes through the string until it sees a \0 character, which is automatically added after the f, and once it sees that it knows it has reached the end of the string.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.