W: Well, it takes only 15 minutes to get to the movies and the film doesn' t begin until 7:55.
What time will the couple get to the movies if they leave immediately?
A.At 7:50.
B.At 7:55.
C.At 7:35.
D.At 7:45.
第1题
有以下程序
#include <stdio.h>
void func(int n)
{ int i;
for(i=0;i<=n;i++) printf(”*”);
printf(”#”).
}
main()
{ func(3); printf(”???? ”); func(4); printf(”\n”); }
程序运行后的输出结果是
A)****#????***#
B)***# ????*** *#
C)**#????*****#
D)****#????*****#
第2题
有以下程序: #include<stdio.h> #include<stdlio.h> void fun(int*pl,int*p2,int*s) { s=(int*)malloc(sizeof(int)); *s=*pl+*p2; free(s); } main() { int a=1,b=40,*q=&a; fun(&a,&b,q); printf("%d\n",*q); } 程序运行后的输出结果是()。
A.42
B.0
C.1
D.41
第3题
有以下程序
include<stdio.h>
void fun(int p)
{int d=2;
p=d++;printf("%d".p);}
main()
{int a=1;
fun(a):printf("%d\n",a);)
程序运行后的输出结果是()。
A.32
B.12
C.21
D.22
第4题
有以下程序
include<stdio.h>
int a=5;
void fun(intB)
{int a=10;
a+=b;pfinff(“%d”,A);
}
main()
{int e=20;
fun(C);a+=e;printf(“%d\n”,A);
}
程序运行后的输出结果是【 】。
第5题
有以下程序
#include <stdio.h>
int a= 5;
void fun(int b)
{ int a= 10;
a+=b; printf("%d",a);
}
main()
{ int c=20;
fun(c);a+=c;printf("%d\n",a);
}
程序运行后的输出结果是 【 1 1 】 。
第6题
有以下程序#include <stdio.h>void prt(int *x,int*y,int*z){ printf("%d,%d,%d\n",++*x,++*y,*z++);}main(){ int a=10,b=40,c=20; prt(&a,&b,&c); prt(&a,&b,&c);}程序的输出结果是
第7题
有以下程序
#include<stdio.h>
void fun(int P)
{int d=2;
P=d++;printf(“%d”,P);}
main()
{int a=1;
fun(A);prinff(“%.d\n”,A);}
程序运行后的输出结果是
A.32
B.12
C.21
D.22
第8题
有以下程序
#include<stdio.h>
void fun(int*p)
{printf("%d\n",p[5]);}
main()
{ int a[10]={1,2,3,4,5,6,7,8,9,10};
fun(&a[3]);
}
程序运行后的输出结果是
A.5
B.6
C.8
D.9
第9题
有以下程序
#include <stdio.h>
void f(int *p,int *q);
main()
{ int m=1,n=2,*r=&m;
f(r,&n); printf("%d,%d",m,n);
}
void f(int *p,int *q)
{p=p+1;*q=*q+1;}
程序运行后的输出结果是
A)1,3
B)2,3
C)1,4
D)1,2
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!