K
karthikbalaguru
Hi,
Memory allocated in heap remains until the end of the program.
So, global variables & static variables are allocated on heap.
In the same time, I find that BSS also allows the placement of static
variables and global variables initialised to zero.
So, while run-time, where does the static/global variables lie in the
Memory Organisation.
Is it in BSS or HEAP ?
I tried googling, i did not find any specific info w.r.t deciding
between bss or heap .
Could someone here clarify me regarding this ?
Thx in advans,
Karthik Balaguru
Memory allocated in heap remains until the end of the program.
So, global variables & static variables are allocated on heap.
In the same time, I find that BSS also allows the placement of static
variables and global variables initialised to zero.
So, while run-time, where does the static/global variables lie in the
Memory Organisation.
Is it in BSS or HEAP ?
I tried googling, i did not find any specific info w.r.t deciding
between bss or heap .
Could someone here clarify me regarding this ?
Thx in advans,
Karthik Balaguru