己知某函数的一个形式参数被说明为MAT[3][10],在下列说明中,与此等效的形参说明是 。
A. int MAT[][10]
B. int MAT[3][]
C. int MAT[l0][3]
D. int MAT[][]
查看答案
设主调函数为如下程序段,则函数f中对形参数组定义错误的是 。 int a[3][4]; f(a);
A. f(int array[3][4])
B. f(int array[][4])
C. f(int array[3][])
D. int array[4][3]
下面程序执行后的输出结果是 。#include< iostream> #include using namespace std;# define N 20void fun(int a[], int n, int m){ int i;for (i = m; i >= n; i--) a[i +1] = a[i];}void main(){ int i;int a[N] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };fun(a, 2, 9);for (i = 0; i<5; i++)cout << a[i];}
A. 10234
B. 12344
C. 12334
D. 12234
写出下面程序执行后的运行结果#includeusing namespace std; int main____{ char arr[2][4];strcpy____; strcpy____;arr[0][3]='&';cout<
写出下面程序执行后的运行结果:#includeusing namespace std; int main____{ char a[]={'a', 'b', 'c', 'd', 'e', 'f', 'g','h','\0'}; int i,j;i=sizeof____; j=strlen____;cout<< i <<","<