问题
问答题
请写出下面C语言程序输出结果。#include<stdio.h>int x=3;void main( ){int i;for(i=1;i<x;i++)incre( );)void incre( ){ static int x=1;x=x+1;printf("%d",x);}
答案
参考答案:2 6
请写出下面C语言程序输出结果。#include<stdio.h>int x=3;void main( ){int i;for(i=1;i<x;i++)incre( );)void incre( ){ static int x=1;x=x+1;printf("%d",x);}
参考答案:2 6