This is a C string:
{"H", "e", "l", "l", "o", "!", "\0"}In C, you could also type "Hello!" when declaring a char [n+1] type. N is the size of the string "Hello!", but +1 is there because of "\0". In C++, it looks like "Hello!". The "\0" char is the end of a string, and it isn't written in the string.
Create a function that will return a C++ string from the given C string.
cppStr({"H", "i", "!", "\0"}) ➞ "Hi!"
cppStr({"H", "e", "l", "l", "o", "!", "\0"}) ➞ "Hello!"
cppStr({"J", "A", "V", "a", "\0"}) ➞ "JAVa"N/A