|
From: Noorez K. <coo...@ho...> - 2004-05-28 02:34:45
|
Need some help understanding pointers.
I can understand this
int main()
{
char charArray[10];
char* pArray = charArray;
for(int i =0; i <10; i++)
{
*pArray ='\0';
pArray++;
}
}
I don't inderstand this. It came from a book I am reading
char* pszMonth;
pszMonth = "January";
this is just a bit of code. But I don't see how this can be. First how can
you make the assignment without the * and how can you put a string in a char
pointer. A char like that should only hold one character.
_________________________________________________________________
Add photos to your e-mail with MSN Premium. Get 2 months FREE*
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
|