Question: 3. Consider the following Ct+ code char szName Seattle: char szCopy //LINE 1 //LINE 2 szCopy new char[strlen(szName)]; I/LINE 3 strepy(szCopy, szNane) I/LINE 4 a.
3. Consider the following Ct+ code char "szName "Seattle": char "szCopy //LINE 1 //LINE 2 szCopy new char[strlen(szName)]; I/LINE 3 strepy(szCopy, szNane) I/LINE 4 a. What is wrong with the following C++ code? b. What is the simple fix? 4. Consider the following C++ code int a, b, ",di a new int; I/LINE 1 b new int; b-5: cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
