问题 填空题

以下程序中,fun函数的功能是求3行4列二维数组每行元素中的最大值,请填空。
void fun(int,int,int(*)[4],int*);
main()
int a[3][4]=12,41,36,28,19,33,15,27),3,27,19,1,b[3],i;
fun(3,4,a,b);
for(i=0;i<3;i++)printf("%4d",b[i]);
printf("\n");

void fun(int m,int n,int ar[][4],int*bar)
int i,j,x;
for(i=0;i<m;i++)
x=ar[i][0];
for(j=0;j<n;j++)if(x<ar[i][j])x=ar
[i][j];
______=x;

答案

参考答案:br[i]

解析: 函数fun的功能是求出二维数组每行元素中的最大值。对于3行4列的二维数组将有3个最大值存放到数组br[]中。x存放的是每行的最大值,当求出每行的最大值x后,应该将x赋值给br[i]。因此此处填空应该是br[i]。

单项选择题
单项选择题

The people who answer the phone get an endless stream of calls from people who are extremely upset that their electricity got turned off just because they failed to pay their bill for 297 months, or people asking questions like "Is it OK to operate an electric appliance while taking a bath"
So let’s say that you have a genuine problem with your electric bill. The people in "Customer Service" have no way of knowing that you’re an intelligent, rational person. They’re going to lump you in with the usual not-so-bright public. As far as they’re concerned, the relevant facts, in any dispute between you and them, are these:
1. They have a bunch of electricity.
2. You need it.
3. So shut up.
This is why, more and more, the people in "Customer Service" won’t even talk to you. They prefer to let you talk to the convenient Automatic Phone Answering System until such a time as you die of old age "... If your FIRST name has more than eight letters, and your LAST name begins with ’H’ through ’L’ press 251 NOW. If your first name has LESS than eight letters, and your last name contains at least two ’E’ s, press 252 NOW. If your..."
So is there any way that you, the lowly consumer, can gain the serious attention of a large and powerful business I am pleased to report that there IS a way, which I found out about thanks to an alert reader who sent me a news report from Russia. According to this report, a Russian electric company got into a dispute with a customer and cut off the customer’s electricity. This customer, however, happened to be a unit of the Russian Army. So the commander ordered a tank to drive over to the electric company’s office and aim its gun at the windows. The electricity was turned right back on.
On behalf of consumers everywhere, I want to kiss this military commander on the lips. I mean, what a GREAT concept. Imagine, as a consumer, how much more seriously your complaint would he taken if you were complaining from inside a vehicle capable of reducing the entire "Customer Service" department to tiny smoking pieces. What I am saying is: Forget the Automated Phone Answering System. Get a tank.
Perhaps you are thinking: "But a tank costs several million dollars, not including floor mats. I don’t have that kind of money."
Don’t be silly. You’re a consumer, right You have credit cards, right
Perhaps you are thinking: "Yes, but how am I going to pay the credit-card company"
Don’t be silly. You have a tank, right

From the first paragraph we may infer that ______.

A.the people who answer the phone are really very busy

B.some people don’t know how to turn off electricity

C.some people don’t know how to operate an electric appliance

D.some people are ignorant of their ridiculous behavior