题目内容

有以下程序:
include<stdio.h>
void fun(char*C,int d)
{*c=*c+1,d=d+1;
printf(%"c%,c",*c,d);
}
main()
{char b=aa=A;
fun(&b,a);printf(%"c,%c\n",b,a);
)
程序运行后的输出结果是()。

A. b,B,b,A
B. b,B,B,A
C. a,B,B,a
D. a,B,a,B

查看答案
更多问题

若有下的定义:"int t[3][2];",能正确表示t数组元素地址的表达式是()。

A. &t[3][2]
B. t[3]
C. t[l]
D. t[2][2]

请补充main函数,该函数的功能是:输入两个正整数numl和num2,求这两个数的最大公约和最小公倍数。
例如,若输入的两个正整数为12,4,则它们的最大公约数为12,最小公倍数为4。
注意:部分源程序给出如下。
请勿改动main函数和其他函数中的任何内容,仅在main函数的横线上填人所编写的若干表达式或语句。
试题程序:
include
include
void main
{
int a,b,numl,num2,t;
system("CLS"):
printf("\nInput two numbers:\n");
scanf("%d,%d",&numl,&num2);
if(numl{
a=num2;
b=num1:
}
else
{
a=num1;
b=num2;
}
while(【1】)
{
t=【2】
a=b;
b=t:
}
printf(“greatest common divisor:
%d\n",a);
printf("least common multiple:
%d\n",【3】;
}

Tom, hurry up, you will miss the school bus.

A. and
B. or
C. but
D. then

Many artists find it hard to a living from art alone.

A. do
B. make
C. have
D. take

答案查题题库