Original Post
Hi I can't find a definitive answer to this Why would
const int [] t = { 1, 2 ,3, 4, 5 }; and static const int [] t = { 1, 2 ,3, 4, 5 }; produce different code? In the first case, visual c++ generates code to initialize they array every time. I used to preach the "static const is redundant, const are static by default" but now I think I might be wrong, at least partially. Can someone clarify this a little bit? thank you!