There are the following function definitions: void fun(int n,double x) {…} If the variables in the following options are correctly defined and assigned values, the correct call statement for function fun is ( ).
A. fun(int y,double m);
B. k=fun(10,12.5);
C. fun(x,n);
D. void fun(n,x);
查看答案
In the C statement, the default storage type of formal parameters is ( ).
A. auto
B. register
C. static
D. extern
When executing the following program, enter 1234567890 and the while loop will execute ______ times .#includeint main (void){ char ch; while((ch=getchar())=='0') printf("#"); return 0;}
If specified,int a[][3]={1,2,3,4,5,6};Then the size of the first dimension of array a is ( ).
A. 2
B. 3
C. 4
D. No definite value
Define the following variables and arrays: int k; int a[3][3]={1,2,3,4,5,6,7,8,9}; The output of the following statement is ( ). for(k=0;k<3;k++) printf("%d",a[k][2-k]);
A. 357
B. 369
C. 159
D. 147