• 2021-04-14
    有以下程序#include #include main(){ char str[ ][20]={“One*World”, “One*Dream!”},*p=str[1];printf(“%d,”,strlen(p));printf(“%s ”,p);}程序运行后的输出结果是()
  • 10,One*Dream

    内容

    • 0

      有以下程序 # include<stdio .h> main() { char s[」=”rstuv"; printf(”%c\n”,*s+2); } 程序运行后的输出结果是

    • 1

      以下程序的输出结果是()。#include <stdio.h>int main(){char str[100]="ABCDEFG", *p=str;int i;for(i = 0; *p != ’ ’; p++,i++);printf("%d ",i);return 0;}

    • 2

      有以下程序,程序运行后的输出结果是_____ #include int main() { char str&#91; &#93;&#91;20&#93;={"One*World", "One*Dream!"}; printf("%s",str&#91;1&#93;); printf("%c\n",str&#91;0&#93;+6); } A: One*Dream!World B: One*WorldOne*Dream C: One One D: One*Dream!r

    • 3

      有以下程序,程序运行后的输出结果是( ) #include int main() { char str&#91; &#93;&#91;20&#93;={"One*World", "One*Dream!"}; printf("%s",str&#91;1&#93;); printf("%c\n",*(str&#91;0&#93;+4)); } A: One*Dream!World B: One*World!W C: One One D: OO

    • 4

      以下程序执行后的输出结果是( )。 #include "string.h" main( ) { char *p[10]={ "abc","aabdfg","dcdbe","abbd","cd"}; printf("%d ",strlen(p[4])); }