Science, asked by RohitSP9239, 1 year ago

Where is static variable stored in memory?

Answers

Answered by komalchauhan1
2
hey dear....!!

When the program (executable or library) is loaded into memory, static variables are stored in the data segment of the program's address space (if initialized), or the BSS segment (if uninitialized), and arestored in corresponding sections of object files prior to loading.

@@@@@@@@@@@@@@@@@
hope it's help u if u like the answer mark as a brain list....!!
Similar questions