View Single Post
Old May 22nd, 2006, 10:22 PM   #8
Twilight
Programmer
 
Join Date: Apr 2006
Location: Calgary, Alberta
Posts: 67
Rep Power: 3 Twilight is on a distinguished road
Why exactly, would you need to have the size of the array for a copy operation? That said:

int size = 0;
int i = 0;

while( CharArray[i] = '\0')
{
    size++;
    i++;
}



And
Quote:
means that the address is returned,.... and char* means that the address could only be stored in a pointer since the return type is pointer,..
What? The Function returns an address. An address is what goes inside a pointer variable, since at heart, a pointer is just a number. The fact that your variable is char* only tells the compiler what kind of variable it will be looking at with that pointer.
Twilight is offline   Reply With Quote