题目内容

有以下程序 #include #define N 8 void fun(int *x,int i) {*x=*(x+i);} main() {int a[N]={1,2,3,4,5,6,7,8},i; fun(a,2); for(i=O;i<> {printf("%d",a[i]);} printf("\n"); } 程序运行后的输出结果是()

A. 1313
B. 2234
C. 3234
D. 1234

查看答案
更多问题

有以下程序 #include #include void fun(char *str) { char temp;int n,i; n=strlen(str); temp=str[n-1]; for(i=n-1;i>0;i--) str[i]=str[i-1]; str[0]=temp; } main() { char s[50]; scanf("%s",s); fun(s); printf("%s\n",s);} 程序运行后输入:abcdef<回车>,则输出结果是 () 。

专科护理的特点是______、______、______。

设有定义double a[10],*s=a;,以下能够代表数组元素a[3]的是()

A. )(*s)[3]
B. *(s+3)
C. *s[3]
D. *s+3

若有以下定义和语句 char s1[10]="abcd!",*s2="\n123\\"; printf("%d %d\n", strlen(s1),strlen(s2)); 则输出结果是()

A. 5 5
B. 10 5
C. 10 7
D. 5 8

答案查题题库