#include <iostream> #include <string.h> int main() { char String1[] = "test"; char String2[80]; strcpy(String2,String1); std::cout << "String1: " << String1 << std::endl; std::cout << "String2: " << String2 << std::endl; return 0; }
String1: test String2: test