What (if anything) is wrong with the following code?
char string_var[] = "Hello";
strcat(string_var, " and Good-bye.");
cout << string_var;
Assume that the code is embedded in a complete program, and that an
include directive for <cstring> is in the program file.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.