题目内容

111

A. 111
B. 22
C. 33
D. 44

查看答案
更多问题

123

A. 1
B. 2
C. 3
D. 4
E. 5

以下程序的输出结果是( )。#include using namespace std;int fun( ){ static int s=0; s+=1; return s; }int main(){ char str[]="abcdef"; int n, i=0; while(str[i]!='\0') { n=fun(); i++; } cout<

A. 0
B. 1
C. 6
D. 7

以下程序的输出结果是( )。 #include using namespace std;long fib(int n){ if(n>2) return(fib(n-1)+fib(n-2)); else return(1);}int main() { cout<

A. 1
B. 2
C. 4
D. 5

下列程序如果输入an anple,该程序的输出结果是( )。#include #includeusing namespace std;void inverse(char str[ ]){ char t; int i, j; for(i=0, j=strlen(str);i>str; inverse(str); cout<

A. an anple
B. elpna na
C. an
D. na

答案查题题库