题目内容

为了判断两个字符串s1和s2是否相等,应当使用( )。

A. if(s1 == s2)
B. if(s1 = s2)
C. if(strcpy(s1, s2))
D. if(strcmp(s1, s2)) (1.0) A、if(s1 == s2) B、if(s1 = s2) C、if(strcpy(s1, s2)) D、if(strcmp(s1, s2))

查看答案
更多问题

C程序的基本单位是( )。 (1.0)

A. 函数
B. 语句
C. 字符
D. 数据

以下对二维数组进行正确初始化的是( )。 (1.0)

A、int a[2][3] = {{1, 2}, {3, 4}, {5, 6;
B、int a[][3] = {1, 2, 3, 4, 5, 6};
C、int a[2][] = {1, 2, 3, 4, 5, 6};
D、int a[2][] = {{1, 2}, {3, 4;

若运行时输入:12345678↙,则下列程序运行结果为__________。int main(void){ int a,b;scanf("%3d%2d",&a,&b);printf("%d\n",a+b);return 0;} (1.0)

A. 46
B. 168
C. 579
D. 出错

1. C程序的基本单位是( )。 (1.0)

A. 函数
B. 语句
C. 字符
D. 数据

答案查题题库