int foo = 1; function bar(void) { int foo = 2; // not visible outside of this function int glob = 2; // not visible outside of this function for (int foo=3;.....) { } } function foobar(void) { int temp =foo; // temp = 1 for (..;.;.) { temp=2 // temp is visible in embedded blocks } temp = glob; // error: glob is not visible in this block }