Can global variables be initiated just after the entry of the main function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, list

I know that global variables are normally initiated before the entry
of the main function.
But I still have a question:
can global variables be initiated just after the entry of the main
function in C or C++?
If not, could you please give me some reasons?
If it's ok, how can I achieve this goal? What compile options should I use and
is there some potential problem that I should be aware of?

Thank you for your attention to this matter.
Best Regards.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux