The tour guide should remind tourists to put tickets and passports in the check-in luggage.
查看答案
If a tourist bags weigh more, he /she should have to pay excess luggage charge.
A. 对
B. 错
The local guide expresses his thanks to tourists for their cooperation, patience and understanding.
A. 对
B. 错
下面程序欲对两个整型变量的值进行交换,以下正确的说法是。main(){int a=10,b=20;printf("(1)a=%d,b=%d\n",a,b);swap(&a,&b);printf("(2)a=%d,b=%d\n",a,b);}swap (int p,int q){int t;t=p;p=q;q=t;}
A. 该程序完全正确
B. 该程序有错,只要将语句swap(&a,&b);中的参数改为a,b即可
C. 该程序有错,只要将swap()函数中的形参p、q和变量t均定义为指针即可
D. 以上说法都不正确
下面程序段是把从终端读入的一行字符作为字符串放在字符数组中,然后输出,请分析程序填空。int i;char s[80],*p;for(i=0;i<79;i++){s[i]=getchar();if(s[i]=='\n') break;}s[i]=【1】 ;p=【2】 ;while(*p) putchar(*p++);