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.