I was going through scope rules questions and all and then got a code snippet, below:
#include
int main()
{
int x = 1, y = 2, z = 3;
printf(\
z = 1077149696
Using %d to print float values is undefined behaviour.
Use "%f" instead
To sum up : Automatic variables are local to the block in which they are declared.