Why is it compulsory and necessary to initialize static variables during compile time only?
saurabh.mehta.33234 13 Junior Poster in Training
Recommended Answers
Jump to Postmy question was why does it gets inialized during COMPILE time only?
The zero initialization is historically due to where static variables were stored in the executable image. They were typically placed in the
All 4 Replies
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
saurabh.mehta.33234 13 Junior Poster in Training
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
marc.punzirudu 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.