C에서 atoi 함수를 쓰던 와중 의문이 생겼다.atoi(2019.txt)를 했더니 2019가 반환된 것이다.왜 그런지 알아보자.atoi 함수는 기본적으로 char to int, 문자열을 정수타입으로 바꾸는 함수이다.atoi("문자") -> 문자가 맨처음 나와서 0 리
C로 자료구조 문제를 풀다가 생긴 에러가 있다.realloc을 사용했을 때 나타난 문제다.warning: ignoring return value of ‘realloc’, declared with attribute warn_unused_resulrealloc을 하면 기존