Hi,Code:char name1[50]; char *pname; cout << endl << i << ". Please enter your full name: "; cin.getline(name1, 50); pname = name1; // The address of the pointer is now the address of the first element of the array system("pause"); cout << "\n*pname is " << *pname << " and " << "pname is " << pname << endl; system("pause");
I cant understand for the life of me why pname becomes the full length of the string.
Can someone explain this code for me please?
Thanks