Category "variable-declaration"

Variable declaration inside curly braces

Why does the following code produce an error? I don't understand why the curly braces are making a difference. #include<stdio.h> int main(void) { {

Confusion about declaration and definition of static const data memebers

Scott Meyers writes in Effective Modern C++ (Item 30 page 210) that there's no need to define integral static const data members in classes; declarations alone