下面程序的功能是对键盘输入的两个字符串进行比较,然后输出两个字符串中第一个不相同字符

题型:填空题

问题:

下面程序的功能是对键盘输入的两个字符串进行比较,然后输出两个字符串中第一个不相同字符的ASCⅡ码之差。例如:输入的两个字符串分别为"abcdefg"和"abceef",则输出为-1。
#include <stdio.h>
main()
char str1[100],str2[100],c;
int i,s;
printf("Enter string 1:");gets(str1);
printf("Enter string 2:");gets(str2);
i=0;
while((str1[i]==str2[i]&&str1[i]!=______))
i++;
s=______;
printf("%d\n",s);

考点:计算机等级考试JAVA二级JAVA笔试
题型:填空题

治疗血热证的方法

题型:填空题

—______ I play computer games?

—No, you mustn't.[ ]

A. May

B. Can

C. Must

D. Shall

题型:填空题

( )的先进性直接影响到设备的质量。

A.人员水平

B.机器

C.材料

D.制造工艺

题型:填空题

公历年份能被4整除的就一定是闰年.______.

题型:填空题

Have you been angry            your best friend? [ ]

A. to

B. for

C. in

D. with

更多题库