#include "stdio.h"float fun(int x,int y){ return(x*y); }main(){ int a=2,b=5,c=8;printf("%.0f\n",fun((int)fun(a+b,c),a-b));}
A. -24
B. 24
C. -168
D. 168
查看答案
凡是函数中未指定存储类别的局部变量,其隐含的存储类别是( )
A. auto
B. static
C. extern
D. register
以下程序的运行结果是_______.main(){incx();incy();incx();incy();incx();incy(); }incx(){int x=0;printf("%d",++x); }incy(){static int y=0;printf("%d",++y);
A. 111213
B. 112233
C. 111111
D. 112131
#include "stdio.h"int x=2;int fun(int p){ static int x=3;x+=p;printf("%d ",x);return (x); }void main(){ int y=3;printf("%d \n",fun(fun(x))); }
A. 5 10 20
B. 5 6 10
C. 5 10 10
D. 5 5 10
#include "stdio.h"int a=1;int f(int c){ static int a=2;c=c+1;return (a++)+c; }main(){ int i,k=0;for(i=0;i<2;i++){ int a=3;k+=f(a); }k+=a;printf("%d\n",k);}以下程序的运行结果是?
A. 13
B. 14
C. 15
D. 16