d0razid0razi.hashnode.dev·Nov 19, 2023Heap 공부 1 (allocator, glibc)데이터를 할당하는 방법 (스택 / 힙) 스택에 할당된 데이터 스택에 할당되는 데이터는 지역변수로 선언된 데이터들이 들어갑니다. 일반적으로 함수 안에서 선언한 데이터들이 지역변수에 해당됩니다. 아래 코드에서 a 변수가 지역변수에 해당됩니다. 해당 변수에 들어가는 정수 8은 스택영역에 저장됩니다. #include <stdio.h> #include <stdio.h> int main() { int a = 8; return 0; } ...LinuxAdd a thoughtful commentNo comments yetBe the first to start the conversation.