배열 복사(구조체 복사)
1) memset int arr[10]; memset(arr, 0, sizeof(arr)); 2) strcpy char source[] = "Hello, World!"; char destination[20]; strcpy(destination, source); 3) memcpy char source[] = "Hello, World!"; char destination[20]; memcpy(destination, source, sizeof(source)); ( 기본적으로 strcpy는 문자열 복사에 사용되며, NULL 종료 문자와 문자열 끝까지만 복사합니다. 반면 memcpy는 임의의 데이터 복사에 사용되며, NULL 종료 문자를 고려하지 않습니다. 적절한 함수를 선택하는 것은 사용 사례에 따라 다릅니다. }