[C언어]"Error in `./a.out': malloc(): memory corruption (fast): 0x0000000001a1d030"해결


[C언어]

문제상황: C 언어로 개발하던 중 동적할당을 활용한 코드에서 에러가 발생했습니다. 에러가 발생한 코드: #include #include typedef struct { int id; char name[20]; } Employee; int main() { Employee* empList; int empCount = 5; empList = (Employee*)malloc(empCount * sizeof(Employee)); for (int i = 0; i

[C언어]"Error in `./a.out': malloc(): memory corruption (fast): 0x0000000001a1d030"해결에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : [C언어]"Error in `./a.out': malloc(): memory corruption (fast): 0x0000000001a1d030"해결