|
-
Feb 19th, 2003, 12:27 PM
#2
Frenzied Member
int* mInt is a pointer to an int, not an int. So you assign 5 to it, whioch means it is pointing at an int in memory at location 0x00000005, which is illegal.
char* mString is a pointer to a char, not a char. However, when you assign a string to it like that, that string already has a memory address that is legal.
Z.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|