/* Demonstrates local variables within blocks. */ #include main() { /* Define a variable local to main(). */ int count = 0; printf("\nOutside the block, count = %d", count); /* Start a block. */ { /* Define a variable local to the block. */ int count = 999; printf("\nWithin the block, count = %d", count); } printf("\nOutside the block again, count = %d\n", count); return 0; }