有以下程序:include <stdio.h>int a=1,b=2:void funl(int a,int b){printf( "%d%d&am
有以下程序:
include <stdio.h>
int a=1,b=2:
void funl(int a,int b)
{printf( "%d%d",a,b); }
void fun2( )
{ a=3;b=4; }
main( )
{ funl(5,6);fun2( );
printf("%d%d\n",a,b);
}
程序运行后的输出结果是( )。
A.1 2 5 6
B.5 6 3 4
C.5 6 1 2
D.3 4 5 6
正确答案:BFunl是输出局部变量的值,fun2是把全局变量的值改成3和4,所以输出的结果是5634。
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
