memset을 통한 배열 초기화 (0으로 다 때려박기)

임시저장/Note 2014. 3. 28. 18:31

int arrays[5];가 있다고 할시


memset(arrays,0,sizeof(int) * 5);


바꿀놈,채울놈,크기 * 갯수