Рет қаралды 24,384
Scope and memory management for local, global and static variables is discussed in detail with examples.
- What are local variables? What is the scope of local variables?
How local variables are allocated in memory? How local variables occupy the stack frames within the stack segment of RAM? Can you have two local variables with same name in two different functions?
- What are global variables? How they are managed in memory? Storing of global variables in data segment of RAM. Global and static variables initialized to zero.
- What are static variables? How are they stored in memory?
Program links,
Mastering loops playlist,
• Mastering loops
Learn C programming playlist,
• Learn C programming
Website link,
logicfirstcoding.com/