#include #include int main() { using namespace std; char p[] = "Hallo"; cout << p; strncpy(p, " Welt", 5); p[5] = '\0'; cout << p << '\n'; }