C++ String Copy Example

#include <iostream>
#include <cstring>

int main() {
    const char* source = "Hello, World!";
    char destination[20];

    std::strcpy(destination, source);

    std::cout << "Source: " << source << std::endl;
    std::cout << "Destination: " << destination << std::endl;

    return 0;
}