// shows the notion of block scope #include char *badstring = "Hi Dave"; void foo(void) { for (int j=0;j<10;j++) { int k = j*10; cout << j << "," << k << endl; { int m = j+k; cout << m << ","<< j << endl; } } } int main(void) { cout << "Calling foo " << endl; foo(); return(0); }