while(1)
{
char* str = new char[100];
strcpy(str, "안녕");
}
이렇게 계속 반복하면 프로그램에 메모리 누수 같은것들이 발생하나요?
직접 써보셈
직접 써보셈