Embedded C
Pages
Home
Embedded C Interview Questions
8051 Tutorials
PIC Tutorials
Arduino Tutorials
Where are Local, Global, Static, Extern variables stored ?
Local variables are stored in Stack
Global variables are stored in BSS
Static variables are stored in BSS
Extern variables are stored in data segment
malloc, calloc and realloc variables are stored in heap
Also refer this memory segment details in C/C++
No comments:
Post a comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a comment