Where does global, static, and local, register variables, free memory and C Program instructions get stored?

QuestionsCategory: C ProgrammingWhere does global, static, and local, register variables, free memory and C Program instructions get stored?
Sonowal Palash asked 3 weeks ago
Please follow and like us:
1 Answers
AdminAdmin answered 3 weeks ago

Wherever the linker puts them. Typically the BSS segment on many platforms.
Static: Again, wherever the linker puts them. Often, theyre intermixed with the globals. The only difference between globals and statics is whether the linker will resolve the symbols across

Please follow and like us: