I'll note that your thread title is misleading. The question has nothing to do with classes or class members, and instead has to do with arrays, pointer use, and pass-by-reference vs pass-by-value.
As you can see from the calls to SetInfo() in main(), strName isn't a single char, it's a C-style string, i.e. an array of chars. Passing a pointer is one way to pass an array into a function.
k, u mean to say we declared an m_strname array as a member variable, copied that array to a pointer named strname and then passed that pointer as a parameter in setinfo() and alex as the argument in main(). right or wrong?