We all know that if we have a pointer to a char like the char* name and name is initialized with the literal "guro" then by writing cout << name; the string guro will printed as is. I want to make a function like that:
void bcpy( char name[MAX], char* pointer );
it takes two arguments one is the array of chars representing the name, and the other is a pointer which after the computation of the function will point to the same string as the one of array, but i will be able to use a command like: cout << pointer; to print the whole string rather than do a for loop with the length of the array to print each char seperately.
Is it possible? any help|