정적할당 vs 동적할당
정적할당 Static Allocation
동적할당 Dynamic Allocation
특성
정적 할당
동적 할당
동적 변수, 동적 배열
int* p = new int;
*p = 10;
// int* p = new int(10);
cout << *p << endl;
delete p;
실습 예제
ch06ex2_평균구하기.cpp
실습 문제
ch06lab1_원점에서가장먼점.cpp
Last updated