var.c
来自「c21Examples.rar」· C语言 代码 · 共 29 行
C
29 行
/* Demonstrates local variables. */
#include <stdio.h>
int x = 1, y = 2;
void demo(void);
int main( void )
{
printf("\nBefore calling demo(), x = %d and y = %d.", x, y);
demo();
printf("\nAfter calling demo(), x = %d and y = %d\n.", x, y);
return 0;
}
void demo(void)
{
/* Declare and initialize two local variables. */
int x = 88, y = 99;
/* Display their values. */
printf("\nWithin demo(), x = %d and y = %d.", x, y);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?