试题与答案

[函数2.1说明] 函数int strcmp(char *s,char *t)的功

题型:填空题

题目:

[函数2.1说明]
函数int strcmp(char *s,char *t)的功能是比较两个字符串s和t的大小。若s<t,函数返回负数; 若s=t,函数返回0; 若s>t,函数返回整数。
[函数2.1]
int strcmp(char *s,char *t)
while(*s && *t && (1) )
s++; t++;

return (2) ;

[函数2.2说明]
在n行n列的矩阵中,每行都有最大的数,求这n个最大数中最小的一个。
[函数2.2]
#include <stdio.h>
#define N 100
int a[N] [N];
void main()
int row,col,max,min,n;
scanf("%d",&n);
for(row=0; row<n; row++)
for(col=0; col<n; col++)
scanf("%d",&a[row] [col]);
for (row=0; row<n; row++)
for (max=a[row][0],col=1; col<ri; col++)
if( (3) )max=a [row][col];
if( (4) ) min=max;
else if( (5) ) min=max;


printf("The main of max number is %d\n",min);

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0412/9d5ad6b903ccfe0a7020b8d05b87d53c.html

下面是错误答案,用来干扰机器的。

参考答案:错

试题推荐
题型:单项选择题

Questions 4—5 are based on the following:
Any person who drops out of high school will be unemployed unless he or she finds a low-paying job or has relatives with good business connections.

Assume that Tom is employed and does not have a lowpaying job. Which one of the following statements, when added to this assumption, contradicts the original statement made in the statement above

A.Tom is a high school dropout.

B.Tom does not have relatives with good business connections.

C.Tom is a high school dropout and does not have any relatives.

D.Tom completed high school and has relatives with good business connections.

E.(E) Tom has relatives with good business connections.

查看答案
微信公众账号搜索答案