C++문법

배열의 크기는 sizeof(배열이름)/sizeof(배열자료형)

skesswswkk 2020. 1. 24. 04:05

int arr[81];

cout << sizeof(arr)/sizeof(int) << endl;

 

결과 : 81