当前位置: 答题翼 > 问答 > 其他 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

考察以下程序片段:var str = “12px”;var s = str.indexof();以下选项正确的是 以下选项正确的是


考察以下程序片段:var str = “12px”;var s = str.indexof();以下选项正确的是 以下选项正确的是

A、输出1

B、输出2

C、输出p

D、输出12

参考答案
您可能感兴趣的试题
  • (12 ) 有以下程序#include <stdio.h>#include <string.h>void fun (char *str ){

  • (12 ) 有以下程序#include <stdio.h>#include <string.h>void fun (char *str ){

  • 有以下程序main(){ char str[]="xyz",*ps=str; while(*ps) ps++; for(ps--; ps-str>=0; ps--) p

  • 有以下程序#include "stdio.h"main(){ char str[]="tomeetme",str1[]="toseeyou"; char *p=str,*

  • 以下程序的输出结果 是_______。main(){ char str[12]={s i g};printf(\%d

  • 有以下程序 main( ) { char str[ ]=xyz *ps=str; while(*ps) ps++; for(ps--;ps-str>=0