So I have the following code:
char userLoginName[] = "Smith";
char password[] = "Smith";
char *_userLoginName, *_password;
_userLoginName = &userLoginName[0]; //1st way
_password = password; //2nd way
Would I be doing the same thing in the two last lines? If not, then why and when would/should I use each of these methods?
EDIT#1: I put the two of them on cout and I had the same result. I don't know how to differentiate them.