简答题阅读程序,回答下面问题: #include #include using namespace std; int main() { int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12}; int *p[3]; //定义一个指针数组,表示一个一维数组内存放着三个指针变量,分别是p[0]、p[1]、p[2] p=a; cout p++; cout return 0; } 请问这两个输出的数据相差多少? A、16 B、4 C、1 D、编译错误简答题设有定义一维数组如下:int a[5],*p=a;,则下列描述中错误的是( ). A、表达式 p=p+1是合法的 B、表达式a=a+1是合法的 C、表达式p-a是合法的 D、表达式a+2是合法的简答题阅读程序,输出结果。 #include using namespace std; int main() { int a[]={11,16,13,14,15}; int *ptr = a; cout cout cout cout return 0; } A、11 11 11 16 B、11 11 12 11 C、11 12 11 12 D、11 16 11 17简答题下列语句中,正确的是( )。 A、char*myString="Hello-World!"; B、char myString="Hello-World!"; C、char myString[11]="Hello-World!"; D、char myString[12]="Hello-World!";简答题阅读程序,回答问题: #include #include using namespace std; int main() { int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12}; int (*p)[4]; //该语句是定义一个数组指针,指向含4个元素的一维数组。 p=a; cout p++; cout return 0; } 请问这两个输出的地址差是多少字节? A、16 B、4 C、1 D、编译错误简答题下列程序的输出结果是 #include using namespace std; int main() { char a[] = "Hello, World"; char *ptr = a; while (*ptr) { if (*ptr >= 'a' && *ptr cout else cout ptr++; } return 0; } A、 HELLO, WORLD B、Hello, World C、hELLO, wORLD D、hello, world简答题已知有数组定义 char a[3][4]; 下列表达式中错误的是( )。 A、a[2]="WIN" ; B、strcpy(a[2],"WIN"); C、a[2][3]='W'; D、a[0][1]=a[0][1];简答题已知:int m=10;在下列语句中错误的是( ) A、int *p=new int(m); B、int *p=new int[m]={0}; C、float *p=new float(m); D、float *p=new float[m];简答题阅读程序,输出结果。 #include using namespace std; int main() { int aa[2][5] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int *ptr1 = (int *)(&aa + 1); int *ptr2 = (int *)(*(aa + 1)); cout return 0; } A、10 5 B、编译错误 C、地址 5 D、10 地址简答题有定义语句:char s[3][10],(*k)[3],*p;则对于下列赋值语句,哪个是正确的? A、 p = s[0]; B、p = s; C、 p = k; D、k = s;