// Use of strcpy - remedies the problem in the previous C program. // Compiles and runs. #include #include // Corresponds to in a C program. void g(){ char s1[] = "Knold", s2[] = "Tot"; std::strcpy(s1, s2); // Works because "Tot" is not longer than "Knold". s2[1] = 'u'; std::cout << s1 << " og " << s2 << std::endl; // Tot og Tut } int main(){ g(); }