有以下程序: include <stdio, h>void swap1 (int c0[],int e1[] ){intt;t = c0[0]; c0[0]: c1 [
有以下程序: include <stdio, h>void swap1 (int c0[],int e1[] ){ int t; t = c0[0]; c0[0]: c1 [0] ; c1 [0] = t;}void swap2(int * c0,int * c1){ int t; t= *c0; *c0= *c1; * c1 =t;}main(){ inta[2]={3.5}.b[2]={3,5}; swapl(a,a+1) ;swap2(&b[0],&b[1]); printf("% d %a %d %d \n" ,a[0] ,a[1] ,b[0] ,b[1] ); }程序运行后的车出结果是()。
A.3 5 5 3
B.5 3 3 5
C.3 5 3 5
D.5 3 5 3
时间:2023-10-07 12:37:50
-
有以下程序#include<stdio .h>main(){char s[」=”rstuv;printf(”%c\n”,*s+2);}程序运行后的输出结果是
-
有以下程序#include \stdio.h\int abc(int u,int v);main(){int a=24,b=16,c;c=abc(a,b);printf(\%d\\n\,c);}int abc(int u,int v){int w;while(v){w=u%v; u=v; v=w ;}return u;}输出结果是( )。
-
有以下程序: include <stdio.h> void f(); } 执行后的输出结果【 】。
-
有以下程序include<stdio.h>main(){char s[]=“rstuv”;printf(“%c\n”,*s+2);}程序运行后的输出结果是()。
A.tuv
B.字符t的ASCII码值
C.t
D.出错
-
有以下程序: include<stdio.h> main() {printf("%d\n",NULL)); 程序运行后的输出结果是()。
A.0
B.1
C.-1
D.NULL没定义,出错
-
有以下程序: include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); }
有以下程序: include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); } 程序运行后的输出结果是()。
A.tuv
B.字符t的ASCIl码值
C.t
D.出错
-
有以下程序 include<stdio.h> defineS(x)4*(x)*x+1 yoidmain() { intk=5,j=2: printf(
有以下程序 include<stdio.h> defineS(x)4*(x)*x+1 yoidmain() { intk=5,j=2: printf(%d\n,S(k+j)); } 程序运行后的输出结果是
A.197
B.143
C.33
D.28
-
有以下程序: include<stdio.h> main() { int i,j,m=55; for(i=
有以下程序: include<stdio.h> main() { int i,j,m=55; for(i=1;i<=3;i++) for(j=3;j<=i;j++)m=m%j; printf(“9/6d\n”,m); } 程序的运行结果是()。
A.0
B.1
C.2
D.3
-
有以下程序: include <stdio.h> main() { int a[]={10,20,30,40},*p=a,j; for(i=0
有以下程序: include <stdio.h> main() { int a[]={10,20,30,40},*p=a,j; for(i=0;i<=3;i++){a[i]=*P;p++;} printf("oAd\n",a[2]); } 程序运行后的输出结果是()。
A.30
B.40
C.10
D.20
-
有以下程序 include<stdio.h>void main()
A.10 9 8
B.9 8 7
C.10 9 8 7
D.9 8 7 6
-
有以下程序(strcpy为字符串复制函数,strcat为字符串连接函数): include<stdio.h> inclu
有以下程序(strcpy为字符串复制函数,strcat为字符串连接函数): include<stdio.h> include<string.h> main() {char a[10]="abc",b[10]="012",c[10]="xyz"; strcpy(a+1,b+2); puts(strcat(a,c+1)); } 程序运行后的输出结果是()。
A.al2xyz
B.12yz
C.a2yz
D.bc2yz
-
有以下程序: include<stdio.h> main() { int a; scanf("%d",&a); if(a++<9
有以下程序: include<stdio.h> main() { int a; scanf("%d",&a); if(a++<9)printf("%d\n",a); clsc printf("%d\n",a--); } 程序运行时从键盘输入9<回车>,则输出结果是()。
A.10
B.11
C.9
D.8
-
有以下程序(注:字符a的ASCIl码值为97)include<stdio.h>main(){ char*s={"abc"
有以下程序(注:字符a的ASCIl码值为97)
include<stdio.h>
main()
{ char*s={"abc")
do
{printf("%d",*S%10");++S; }
while(*s);
}
陧序运行后的输出结果是()。
A.abc
B.789
C.7890
D.979899
-
有以下程序 include<stdio.h> main() {char a[3O],b[30]; scanf("%S",a); gets(b);
有以下程序 include<stdio.h> main() {char a[3O],b[30]; scanf("%S",a); gets(b); printf("%s\n%s\\n",a,b); } 程序运行时若输入: how are you? I am fine<回车> 则输出结果是()。
A.how are you? I am fine
B.how are you?I am fine
C.how are you?I am fine
D.how are you?
-
有以下程序:include <stdio. h>main (){char a :'a',b; printf("% c," , + + a); printf("%c
有以下程序: include <stdio. h> main () { char a :'a',b; printf("% c," , + + a); printf("%c \n" ,b =a++); }程序运行后的输出结果是()。
A.b,b
B.b,c
C.a,b
D.a,c
-
有以下程序(strcat函数用以连接两个字符串) include<stdio.h> include<string.h>。
有以下程序(strcat函数用以连接两个字符串) include<stdio.h> include<string.h>。 main {char a[20]="ABCD\oEFG\0",h[]="IJK"; strcat(a,b);printf("%s\n",a); ) 程序运行后的输出结果是()。
A.ABCDE\0FG\0IJK
B.ABCDIJK
C.IJK
D.EFGIJK
-
有以下程序 include<stdio.h>include<string.h>void fun(); } 程序运行后的输出结果是
A.012345
B.876543210
C.876543
D.012345678
-
有以下程序includ<stdio.h>main(){printf("%"NUL);}程序运行后的输出结果是()
A.1
B.变量无定义,输出不确定
C.-1
D.0
-
有以下程序 include<stdio.h>include<string.h>typedef struct stu { char name[10]; char gender; int score; } STU; void f(); } 程序的运行结果是
A.Zhao,m,290,Zhao,m,290
B.Zhao,m,290,Qian,m,290
C.Zhao,m,290,Qian,m,350
D.Zhao,m,290,Qian,f,350
-
有以下程序:includ<stdio.h>include<string.h>main()chaa[10]="abcd";printf("%d,%",strlen(a),sizeof(a));}程序运行后的输出结果是()
A.7,4
B.4,10
C.8,8
D.10,10
-
有以下程序includ<stdio.h>main(){ int a;(int)(-1.53*3);printf("%"a);}程序的运行结果是()
A.-3
B.-4
C.-5
D.结果不确定
-
有以下程序: include<stdio.h> main() } int y=9; for(y>0;
有以下程序: include<stdio.h> main() } int y=9; for(y>0;y--) if(y%3==0)printf(“%d”,--y); } 程序的运行结果是()。
A.741
B.963
C.852
D.875421
-
有以下程序include ’stdio.h’min()} 程序的运行结果是3 B.5C.7 D.8
A.3
B.5
C.7
D.8
-
有以下程序 include<stdio.h> include<stdio.h> intfun()); } 程序的运行结果是10 B.20 C.0 D.出错
A.10
B.20
C.0
D.出错
-
有以下程序段,在空白处填入(),可以使程序正确运行。 include <stdio.h> int (int x,int y)
有以下程序段,在空白处填入(),可以使程序正确运行。 include <stdio.h> int (int x,int y) {if(x>y)return &x; else return &y; } main() {int a=3,b=5,*p; p=f(a,b); printf("%d",*p); }
A、f
B、*f
C、(*f)
D、其余选项都不对