若有两个字符串str 1=“98765”,str 2=“65”,执行s=Instr (str1,str2)后,返回 ( )。A.3B.4C.5D.6

题目

若有两个字符串str 1=“98765”,str 2=“65”,执行s=Instr (str1,str2)后,返回 ( )。

A.3

B.4

C.5

D.6


相似考题
更多“若有两个字符串str 1=“98765”,str 2=“65”,执行s=Instr (str1,str2)后,返回 ()。A.3B.4C.5D.6 ”相关问题
  • 第1题:

    06410031:判断字符串str1是否大于字符串str2,应当使用()。

    A.if (str1>str2)

    B.if (strcmp(str1, str2))

    C.if (strcmp(str2, str1)>0)

    D.if (strcmp(str1, str2)>0)


    if (strcmp(str1, str2)>0)

  • 第2题:

    若有语句;char str1[8],str2[8]={"hello!"}; 则能将字符串hello!赋给str1的正确语句是_____

    A.str1=str2

    B.strcpy(str1,str2)

    C.str1==str2

    D.strcpy(str2,str1)


    ’/0’

  • 第3题:

    若有定义:char strl[20]="a good ", str2[ ]="student"; 以下能将字符串str1变为"a good student"的语句是()。

    A.strcat(str1, str2);

    B.strcpy(str1, str2);

    C.str1 = str1 + str2;

    D.str1 = str1 & str2;


    8,16,10

  • 第4题:

    字符串函数strcat(str1,str2)的作用是将字符串str2连接在字符串str1后.


    正确

  • 第5题:

    字符串函数strcat(str1,str2)的作用是将字符串str2连接在字符串str1后。


    正确