malloc을 사용할 때마다 경고가 뜨는 이유는 무엇입니까? 사용하는 경우malloc내 코드: int *x = malloc(sizeof(int)); 나는 이 경고를 받았다.gcc: new.c:7: warning: implicit declaration of function ‘malloc’ new.c:7: warning: incompatible implicit declaration of built-in function ‘malloc’ 다음 항목을 추가해야 합니다. #include 이 파일에는 내장 함수에 대한 선언이 포함되어 있습니다.malloc그렇게 하지 않으면 컴파일러는 다음과 같은 이름의 함수를 정의하고 싶다고 생각합니다.malloc다음과 같은 이유로 경고합니다. 명시적으로 선언하지 않고 해당 이름의 ..