题目内容

设主调函数为如下程序段,则函数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 <<","<

写出下面程序执行后的运行结果:#includeusing namespace std;int main____{ int i;int a[3][3]={1,2,3,4,5,6,7,8,9};for____cout<

答案查题题库