Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

char* 1

Status
Not open for further replies.

jimjake

Technical User
Oct 30, 2004
25
0
0
US
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
 
CHAR* means pointer to CHAR

Ion Filipski
1c.bmp
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top