有以下程序#include<stdio.h>#include<stdlib.h>voidfun(int*p1,int*p2,int*s)s=(int*)malloe(sizeof(int));*s=*p1+*(p2++);main()inta[2]=1,2,b[2]=10,20,*s=a;fun(a,b,s);printf(%d\n,*s);程序运行后的输出结果是______。
有以下程序#include<stdio .h>main(){char s[」=”rstuv;printf(”%c\n”,*s+2);}程序运行后的输出结果是
有以下程序 #include void fun(char *a, char *b) { while(*a=='*') a++; while(*b = *a) {b++; a++;} } void main( ) { char *s=*****a*b****,t[80]; fun(s,t); puts(t); } 程序运行结果是( )。
有以下程序 #include void fun(char *a,char *b) {while(*a==’*’) a++; while(*b=*a) {b++;a++;} } main() {char *s=”****a*b****”,t[80]; fun(s,t); puts(t); } 程序的运行结果是
有以下程序: #include struct S { int a,b; } data[2]={10,100,20,200}; void main() {struct S p; p=data[1]; printf(%d\n,++(p.a)); } 程序的运行结果是( )
有以下程序: #include void main() { char a[][10] = {'Morning', 'Afternoon', 'Evening', 'Night'}; printf('%s',a[1]); } 程序运行后的输出结果是__________。
有以下程序#include #include main(){ char str[ ][20]={“One*World”, “One*Dream!”},*p=str[1];printf(“%d,”,strlen(p));printf(“%s ”,p);}程序运行后的输出结果是( )
有以下程序 #include main() {char *s=(“ABC”); do {printf(“%d”,*s%10);s++; }while(*s); } 注意,字母 A的ASCII码值为65。程序运行后的输出结果是
有以下程序:#include#includevoid main(){ char str[][10]={'oneWorld','oneDream!'};printf('%d,',strlen(str[1]));printf('%s ',str[1]);}程序运行后的输出结果是______。
有以下程序 #include #define f(x) x*x*x main() { int a=3,s,t; s=f(a+1);t=f((a+1)); printf(“%d,%d’,s,t); } 程序运行后的输出结果是
有以下程序include <stdio.h>int fun(char s[]){ int n=0;while(*s<=′9′&&*s>=′0′) {n=10*n+*s-′0′;s++;}return(n);}main(){ char s[10]={′6′,′1′,′*′,′4′,′*′,′9′,′*′,′0′,′*′};printf("%d\n",fun(s));}程序的运行结果是
有以下程序include<stdio.h>main(){char s[]=“rstuv”;printf(“%c\n”,*s+2);}程序运行后的输出结果是()。
有以下程序 include <stdio.h> void fun(char **p) { ++p; printf("%s\n",*p); } main() { char *a[]={"Moming","Afternoon","Evening","Night"}; fun(a); } 程序的运行结果是
有以下程序: include main() { int s=0.n; for(n=0;n<3;n++) { switch(s) { case 0; case1:s+=1; case 2:s+=2;break; case 3:S+=3; default:s+=4; } printf("%d,"s); } } 程序运行后的输出结果是()。
有以下程序include<stdio.h>int fun(){static int x=1;x+=1;return x;}main(){int i,s=1;for(i=1;i<=s;i++)s+=fun();printf(”%d\n”,s);}程序运行后的输出结果是()。
有以下程序: include<stdio.h> include<string.h> main() {char str[][20][{"One*World","One*Dream!"},*p=str[1]; prinft("%d,",strlen(p));printf("%s\n",p); } 程序运行后的输出结果是()。
有以下程序(strcat函数用以连接两个字符串)include<stdio.h>include<string.h>main(){char a[20]=”ABCD\0EFG\0”,b[]=”IJK”;strcat(a,b);printf(”%s\n”,a);}程序运行后的输出结果是()。
有以下程序: include<stdio.h> int fun() {static int x=1; X*=2: return x; } main() {int i,S=1; for(i=1;i<=3;i++)S*=fun(); printf("%d\n",s); } 程序运行后的输出结果是()。
有以下程序: include int fun() {static int x=1; X*=2;return X; main() int i,s=1; for(i=1;i<=2;i++)s=fun(); printf{¨%d\n",s); } 程序运行后的输出结果是()。
有以下程序,程序运行后的输出结果应为()。include "stdio.h"main(){ int aa【4】【4】={{1,2,3,4},{5,6,7,8},{3,9,10,2},{4,2,9,6}};int i,s=0;for(i=0;i<4;i++) s+=aa【i】【1】;printf("%d\n",s);}
有以下程序(说明:字母A的ASCII码值是65):includ<stdio.h>voifun(cha*s)while(*s)if(*s%2)printf("%c",*s);s++;}}main()chaa[]="BYTE";fun(a);printf("");}程序运行后的输出结果是()
有以下程序 include int fun(char s[]) {int n=0; while(*s<=9&&*s>=0){n=10*n+*s-o;s++;) return(n); } main {char s[10]={6,1,*,4,*,9,*, 0,*); printf("%d",fun(s)); } 程序运行的结果是()。
有以下程序: include void fun(char*t,char*s) { while(*t!=O)t++; while((*t++=*s++)!=0); } main { char ss[10]="acc",aa[10]="bbxxyy"; fun(ss,aa);printf("%S,%s",ss,aa); } 程序运行结果是()。
有以下程序: include <stdio.h> int f(int n); main() (int a=3,s; s=f(a);s=s+f(a);printf("%d",s); int f(int n) (static int a=1; n+=a++: return n: 程序运行以后输出的结果是()。