⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 block.c

📁 c21Examples.rar
💻 C
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -