题目内容

以下程序的输出结果是( )。#include int func(int a,int b){return(a+b);}main( ){ int x=2,y=5,z=8,r;r=func(func(x,y),z);printf("%d\n",r);}

A. 12
B. 13
C. 14
D. 15

查看答案
更多问题

编写函数fun要求接受一个整形值(无符号),把它转换为字符并打印它。void fun(int x){(1)}int main(){int a = 1234;fun(a);system("pause");return 0;}

编写strlen函数。int my_strlen(char *str){(1)}int main(){char str1[] = "abcdefghijklmnopqrstuvwxyz";printf("%d", my_strlen(str1));system("pause");return 0;}

求n的阶层int factorial(int x){(1)}int main(){int x = 5;factorial(x);system("pause");return 0;}

斐波那契数列。int fib(int x){(1)}int main(){int x = 4;printf("%d",fib(x));system("pause");return 0;}

答案查题题库