Question: C++, exercise #12 The following statement declares a variable to be of type string and assigns the string Johnson to this variable: string lastName=Johnson; The
The following statement declares a variable to be of type string and assigns the string Johnson to this variable: string lastName="Johnson"; The data types mentioned previously in this lab are built-in data types. The string data type is programmer-defined and is supplied by the C++ standard library. Thus we must include in any program that uses strings the following preprocessor directive. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
