题目内容

以下程序的运行结果是( )#include void main( ){ struct node{ int x;int y;}a,b;a.x=2;a.y=3;b.x=a.x+a.y;by=a.x*a.y;printf ("%d,%d\n",b.x, b.y) ; }

A. 5
B. 5,6
C. 5,5
D. 6,6

查看答案
更多问题

以下程序的运行结果是( )#include long fac(int n){if(n==0)return 1;elsereturn n*fac(n-1);}void main(){long c;c=fac(5);printf("%ld",c);}

A. 15
B. 24
C. 120
D. 240

若有定义inta[3][5];则排列在数组中的第9个元素是a[1][3]。( )

在函数的定义中,若函数没有参数,则可以省略函数名后的括号。( )

函数返回值的数据类型取决于函数定义时为函数指定的数据类型。( )

答案查题题库