티스토리
C++ Chapter 6.11 : 동적 할당 배열
출처
https://pokaa.tistory.com/entry/C-Chapter-611-동적-할당-배열
https://pokaa.tistory.com/entry/C-Chapter-611-동적-할당-배열
26일전
2023-11-12 14:04

= 5; int array[length];
반드시 배열의 크기가 프로그램이 실행되기
전에 미리 컴파일 타임에 정해져야 한다.
프로그램 실행 전에 미리 공간을 할당
받기 때문! 배열의 크기를 리터럴 상수가
아닌 변수로 넣고 싶으면...
더보기
출처
https://pokaa.tistory.com/entry/C-Chapter-611-동적-할당-배열
https://pokaa.tistory.com/entry/C-Chapter-611-동적-할당-배열
26일전
2023-11-12 14:04