{
int mount;
auto int month;
}
{
register int miles;
}
#include <stdio.h>
/* 函数声明 */
void func(void);
static int count = 5; /* 全局变量 */
main()
{
while(count--)
{
func();
}
return 0;
}
/* 函数定义 */
void func( void )
{
static int i = 5; /* 局部静态变量 */
i++;
printf("i is %d and count is %d\n", i, count);
}
i is 6 and count is 4 i is 7 and count is 3 i is 8 and count is 2 i is 9 and count is 1 i is 10 and count is 0
#include <stdio.h>
int count ;
extern void write_extern();
main()
{
count = 5;
write_extern();
}
#include <stdio.h>
extern int count;
void write_extern(void)
{
printf("count is %d\n", count);
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有