Brace Initiate 문제
#include <stdio.h> int main() { int arr[16] = {-1,}; for (int i = 0; i < 16; i++) { printf("%d ", arr[i]); } printf("\n"); return 0; } ./a.out -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 초기화가 편해서 {0,}을 즐겨쓰는 편인데 {-1,} 을 쓰면 위와같은 문제가 발생한다. 조심하자...