Copy the C-strings a and b into the array cstr Separate them with a space and follow them with an exclamation mark. cstrings.cpp 1 #include #include 3 using namespace std; 4 int main() { 7 const int...


Copy the C-strings a and b into the array cstr Separate them with a<br>space and follow them with an exclamation mark.<br>cstrings.cpp<br>1<br>#include <iostream><br>#include <cstring><br>3<br>using namespace std;<br>4<br>int main()<br>{<br>7<br>const int MAX =<br>1024;<br>char cstr[MAX];<br>const char* a = " « cstr « endl; } 13 14 "/>
Extracted text: Copy the C-strings a and b into the array cstr Separate them with a space and follow them with an exclamation mark. cstrings.cpp 1 #include #include 3 using namespace std; 4 int main() { 7 const int MAX = 1024; char cstr[MAX]; const char* a = "Hello"; const char* b = 9. 10 "World"; 11 strcpy(cstr, a); 12 cout <« "cstr-="">" « cstr « endl; } 13 14

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here