C++ static data members initialization -


1) true static data members of classes initialized before main() called?

2) true "static initialization order fiasco" can happen if static data member of class initialization code uses global static variable of other translation unit?

where can read more it? couldn't find answer in 2003 standard of c++.

thanks lot.

1) true static data members of classes initialized before main() called?

yes initialized before program starts executing.

2) true "static initialization order fiasco" can happen if static data member of class initialization code uses global static variable of other translation unit?

yes, along happens every other thing initialized before main() execution.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -