MCQOPTIONS
Saved Bookmarks
| 1. |
Analyse the following code snippet: ClassTemp { private: charm_acEmpName[25]; public: char*GetFirstChar() { strcpy(m_acEmpName,"Hello"); returnthis->m_acEmpName; } }; intmain(intargc,char**argv)v { Temp oTempObject; cout< } . |
| A. | Displays the first character of the string |
| B. | Displays the complete string Hello |
| C. | Error |
| D. | Displays the last character of the string |
| Answer» C. Error | |