[单选题]

下列程序段的运行结果是()。 include void main() {char str[]="ABC",*p=str; printf("

下列程序段的运行结果是( )。

#include<stdio.h>

void main()

{ char str[]="ABC",*p=str;

printf("%d/n",*(p+3) );

}

A.67

B.0

C.字符'C'的地址

D.字符'C'

参考答案与解析:

相关试题

下列程序段的运行结果是( )。 #include void main() {ch

[单选题]下列程序段的运行结果是( )。 include void main() {char str[]="ABC",*p=str;printf("下列程序段的运行结果是( )。 #include<stdio.h> void main() { char str[]="ABC",*p=str; printf("%d/n",* (p+3)); }A.67B.0C.字符'C'的地址D.字符'C'

  • 查看答案
  • 下面程序段的运行结果是 #include void main( ) {char*

    [单选题]下面程序段的运行结果是 include void main( ) {char*s="abcde"; S£«=2;下面程序段的运行结果是 #include<iostream.h> void main( ) { char*s="abcde"; S+=2; cout<<&s;}A.cdeB.字符'c'C.字符'c'的地址D.无确定的输出结果

  • 查看答案
  • 下面程序的运行结果是 #include Void main( ) { int n

    [单选题]下面程序的运行结果是 include Void main( ) { int num=1; int &ref=num;ref=下面程序的运行结果是#include<iostream.h>Void main( ){int num=1;int &ref=num;ref=ref+2;cout < < num;num=num+3;cout < < ref < <endl;}A.13B.16C.36D.33

  • 查看答案
  • 下面程序的运行结果是 #include void main( ) { int i

    [单选题]下面程序的运行结果是 include void main( ) { int i=1; while(i <=8) if(£«£«i%3!下面程序的运行结果是#include<iostream.h>void main( ){int i=1;while(i <=8)if(++i%3!=2) continue;else cout < < i;}A.25B.36C.258D.369

  • 查看答案
  • 以下程序的输出结果是()。#include#include main(){cha

    [单选题]以下程序的输出结果是()。includeinclude main(){char str[12]={'s','t','r以下程序的输出结果是( )。 #include <stdio.h> #include <string.h> main() { char str[12]={'s','t','r','i','n','g'}; printf("%d/n",strlen(str) ); }A.6B.7C.11D.12

  • 查看答案
  • 以下程序的输出结果是______。 #include main() { cha

    [单选题]以下程序的输出结果是______。 include main() { char*a="abcdefghi";int k fun(a);p以下程序的输出结果是______。 #include <string.h> main() { char*a="abcdefghi";int k fun(a);puts(a); } fun(char*s) { int x,y; char c for(x=0,y=strlen(s)-1;x<y:x++,y--) {c=s[y];s[y]=s[x];s[x]

  • 查看答案
  • 以下程序运行后的输出结果是()。 include void main() { c

    [主观题]以下程序运行后的输出结果是()。 include void main() { char a[]="abcdabcabfgacd";以下程序运行后的输出结果是[ ]。include<iostream.h>void main(){char a[]="abcdabcabfgacd";int i 1=0,i2=0,i=0;while (a[i]){if (a[i]=='a')il++;if (a[i]=='b')i2++;i++;}cout<<il<<' '<<i2<<endl;}

  • 查看答案
  • 下列程序的输出结果是()。 #include void main() {int

    [单选题]下列程序的输出结果是()。 include void main() {int b[6]£­<2,4,6,8,10,12}; int*p=b,*下列程序的输出结果是( )。#include<stdio.h>void main(){ int b[6]-<2,4,6,8,10,12};int*p=b,**q=&p;printf("%d",*(p++));printf("%d,",**q);}A.4,4B.2,2C.4,5D.2,4

  • 查看答案
  • 下列程序的输出结果是()。 #include void main() {int

    [单选题]下列程序的输出结果是()。 include void main() {int a=0,b=1,c=2; if(£«£«a>0‖£«£«b>0) £«下列程序的输出结果是( )。#include<stdio.h>void main(){ int a=0,b=1,c=2;if(++a>0‖++b>0)++C;printf("%d,%d,%d",a,b,C) ;}A.0,1,2B.1,2,3C.1,1,3D.1,2,2

  • 查看答案
  • 下列程序的输出结果是( )。 #include void main() {int

    [单选题]下列程序的输出结果是( )。 include void main() {int a=0,b=1,c=2;if(£«£«a>0‖£«£«b>0)£«£«c下列程序的输出结果是( )。 #include<stdio.h> void main() { int a=0,b=1,c=2; if(++a>0‖++b>0) ++c; printf("%d,%d,%d",a,b,c); }A.0,1,2B.1,2,3C.1,1,3D.1,2,2

  • 查看答案
  • 下列程序段的运行结果是()。 #include void main() {cha