有两个字符数组a、b,则以下正确的输人语句是()。
A. gets(a,b);
B. scanf("%s%s",a,b);
C. scanf("%s%s", &a,&b);
D. gets("a"),gets("b");
查看答案
字符串结束的标识是()。
A. ;
B. \n
C. \0
D. "
以下程序的功能是求数组a中的最大值,请完善程序。{int a[5]={23,4,5,2,32}, i, max;max=a[0];for(i=1;i<=4;i++)if(max
将10个整数输入数组,求出其平均值并输出。main( ){int i, a[10], sum=0;for(i=0;i<10;i++){scanf("%d",&a[i])sum+=_____________;}printf("%8.2f\n",__________);}
Take a guess! What is the sport?1) It seems clear that the English game originated in the sheep-rearing country of the Southeast; however, it is fair to say that the real power in the game has shifted from England to ex-colonies such as Australia, New Zealand, South Africa, etc. The sport is ________.2) The sport is played with an egg-shaped ball. It can be a dangerous game as players wear no protective clothing. The sport is ________.3) The sport has always been a popular choice with the working classes because of its symbiotic relationship with gambling. The sport is ________.4) Today, violence is still associated with the sport. Supporters of rival teams, sometimes clash before, during and after matches and occasionally run riot through the town and beating each other up. The sport is ________.