有以下程序: include using namespace std; char *x[]={"First", "Second", "Third" 有以下程序: #include <iostream> using namespace std; char *x[]={"First", "Second", "Third" }; void f(char *z[ ]) { cout<<*z++<<end1; } int main ( ) { char **y; y=x; f(y); return 0; }A.产生语法错误B.FirstC.SecpndD.Third

有以下程序: include using namespace std; char *x[]={"First", "Second", "Third"

有以下程序: #include <iostream> using namespace std; char *x[]={"First", "Second", "Third" }; void f(char *z[ ]) { cout<<*z++<<end1; } int main ( ) { char **y; y=x; f(y); return 0; }

A.产生语法错误

B.First

C.Secpnd

D.Third


相关考题:

下面程序的输出结果是【】。 include using namespace std; int x; void funA(int,i 下面程序的输出结果是【 】。include<iostream>using namespace std;int x;void funA(int,int);void funB(int,int);int main(){int first;int second=5;x=6;funA(first,seconD) ;fimB(first,seconD) ;cout<<first<<" "<<second<<" "<<x<<end1;return 0;}void funA(int a,int B){int first;first=a+b;a=2*b;b=first+4;}void funB(int u,int v){int second;second=x;v=second+4;x=u+v;}

下面程序的输出结果是______。 include using namespace std; int x; void funA(int,int);void funB(int,int);int main(){int first;int second=5;x=6;funA(first,second);funB(first,second);cout<<first<<””<<second<<””<<x<<endl;return 0;}void funA(int a,int b){int first;first=a+b;a=2*b;b=first+4;}void funB(int u, int v){int second;second=x;v=second+4;x=u+v;}

有以下程序includeincludevoid main( ){char*p="abcde\0fghjik\0"; cou 有以下程序 #include<string.h> #include<iostream.h> void main( ) { char*p="abcde\0fghjik\0"; cout<<strlen(p);} 程序运行后的输出结果是A.12B.15C.6D.5

有如下程序段 if(x<0){System.out.println("first");} else if(x<-4){System.out.println("second");} else{System.out.println("third");} x的取值在( )范围内时,将打印出字符串"second"。A.x>0B.x>-4C.x<=-4D.x<=0 &&x>-4

有以下程序:includeincludevoid main( ){char * p="abcde\0fghjik\0";c 有以下程序: #include<string.h> #include<iostream.h> void main( ) { char * p="abcde\0fghjik\0"; cout < < strlen(p) ;} 程序运行后的输出结果是A.12B.15C.6D.5

有如下程序段: if(x>0){ System.out. println("first");} else if(x>-4){ System.out.println("second");} else { System.out.println("third");}x的取值在什么范围内时,将打印出字符串 "second" ?A.x>0B.x>-4C.x<= -4D.x<= 0x> -4

有如下程序段 if(x0) { System.out.println("first");} else if (x -4) { System.out.println("second");} else { System.out.println("third");} x的取值在什么范围内时,将打印出字符串“second"?A.x 0B.x -4C.x = -4D.x = 0 x -4

有如下程序段if (x>0) {System.out.println ("first") ;}else if (x>-4) { System.out.println ("second") ; }else{System.out.println ("third") ;}x的取值在( )范围内时,将打印出字符串"second"。A.x>0B.x>-4C.x<=-4D.x<=0&&x>-4

有以下程序,程序运行的结果是 ______。includeincludevoid main(){charx 有以下程序,程序运行的结果是 ______。 #include<iostream.h> #include<string.h> void main(){ char x[]= "C++" ,y[10]= "C++" ; cout<<sizeof(x)/sizeof(char)<<“,”<<sizeof(y)/sizeof(char); }A.3 3B.4 4C.4 10D.10 10