I'm trying to do this :
void print(char *string){
int i = 0;
do{
cout << string[i];
i++;
} while (string[i] != '/0');
}
But on the output I have some weird results. How can I make this work. Am just trying to print out array of chars with a pointer to a 1st in line. TY