cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
char* question
char* question
Mar 5, 2009 at 8:46pm UTC
l1nuxt1l1d13
(1)
I'm sorry if this question has been asked a million times before but the bottom line is I simply do not know what to search for to answer this question: What significance does the * have in c++?
Mar 5, 2009 at 9:09pm UTC
jsmith
(5804)
* has several meanings.
char* p;
here the * means p is a pointer to a character (ie, p is not itself a character)
*p = 'a';
here the * means to "dereference" the pointer and store 'a' in the character pointed to by p.
And then there's multiplication.
Topic archived. No new replies allowed.