单项选择题

以下程序的运行结果是( )。
#include <stdio.h>
main()
int a[]=1,2,3,4,5,6,7,8,9,10,11,12;
int *p=a+5,*q=NULL;
*q=8(p+5);
printf("%d %d\n", *p,*q);

A.运行后报错
B.6 6
C.6 11
D.5 5
<上一题 目录 下一题>
热门 试题

单项选择题
以下选项中,能定义s为合法的结构体变量的是( )。
A.typedef struct abc
double a;
char b[10];
s;
B.struct
double a;
char b[10];
s;
C.struct ABC
double a;
char b[10];

ABC s;
D.typedef ABC
double a;
char b[10];

ABC s;
单项选择题
以下程序的输出结果是( )。 #include <stdio.h> main() int i,x[3][3]=9,8,7,6,5,4,3,2,1,*p=&x[1][1]; for(i=0;i<4;i+=2) printf( %d ,p[i]);
A.52
B.51
C.53
D.97
相关试题
  • 有以下程序: #include <stdio.h> m...
  • 请选出以下程序的输出结果( )。 #incl...
  • 请读程序: #include <stdio.h> fun...
  • 读程序: #include <stdio.h> f(in...
  • 已知字符0的ASCII码为十六进制的30,现...