A
Anand Hariharan
does having more variables increases the size of program.
If they have linkage, yes.
does having more variables increases the size of program.
If they have linkage, yes.
sorry i didnt understand
Antoninus said:Static variables will be stored in your executable, either in the .bss
section (if they're uninitialized) or in the .data section (if they're
initialized), so this will add to the size of your executable.
Typically, the .bss section occupies no space in the executable file and
the specified space is created and zeroed out at load-time.
santosh said:Typically, the .bss section occupies no space in the executable file and
the specified space is created and zeroed out at load-time.
Static variables will be stored in your executable, either in the .bss
section (if they're uninitialized) or in the .data section (if they're
initialized), so this will add to the size of your executable.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.