block.c
来自「c21Examples.rar」· C语言 代码 · 共 25 行
C
25 行
/* Demonstrates local variables within blocks. */
#include <stdio.h>
int main( void )
{
/* 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;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?