当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

有以下程序 main() {char str[][10]={China Beijing} *p=str; printf(\%s\n p+10);


有以下程序main(){char str[ ][10]={"China","Beijing"},*p=str;printf("%s\n",p+10);}程序运行后的输出结果是

A、China

B、Bejing

C、ng

D、ing

参考答案
您可能感兴趣的试题
  • (40 )有以下程序#include <stdio.h>main (){ FILE *fp;char str[10];fp=fopen (" myfile

  • (40 )有以下程序#include <stdio.h>main (){ FILE *fp;char str[10];fp=fopen (" myfile

  • 有以下程序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

  • 有以下程序#include<stdio.h>#include<string.h>main(){char str[][20]={“Qne*World