5.01. C Programming

  1. Explain the memory layout.[AMD Jan-2026Vem Feb-2026,AMD Dec-2025]
  2. what will happen during runtime in stack memory.[AMD Dec-2025]
  3. how to create the stack frame? from where it can take the reference to create frame(from memory layout).[AMD Dec-2025]
  4. Explain how linker works indetail using memory layout.[Vem Feb-2026]
  5. What is the memory layout of a C program? Explain each segment (text, data, BSS, stack, heap). [Team F1 Network / XBattery / VEM Technology]
  6. What is the difference between malloc() and calloc()? What are their default return values? [Team F1 Network / VEM Technology]
  7. What is realloc() and how does it differ from free()? [VoltyIOT]
  8. What is memory leak and how to prevent it? [Samhitha Corp / Webber]
  9. What is stack overflow? [Samhitha Corp]
  10. Dynamic memory allocation vs static memory allocation. [Webber]
  11. Stack and heap — differences. [XBattery / Samhitha Corp]
  12. Where are global variables stored? [Team F1 Network]
  13. Where are initialized global variables and uninitialized global variables stored (data segment and BSS)? [Team F1 Network]
  14. Where are function arguments and local variables stored? [Team F1 Network]
  15. Where is the program (code) stored in memory? [Team F1 Network]
  16. Can we change the code segment manually? [Team F1 Network]
  17. Dynamically create 20 bytes and extend it to 15 bytes. [VEM Technology]
  18. What is the difference between stack and data segment? [VEM Technology]
  19. Explain the heap segment. [VEM Technology]