单项选择题

以下程序的运行结果是( )。
#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
<上一题 目录 下一题>
热门 试题

单项选择题
设有以下语句: char str[4][12]= aaa , bbbb , ccccc , dddddd ,*strp[4]; int i; for(i=0;i<4;i++) strp[i]=str[i]; 下列选项不是对字符正确引用的是(其中0≤k<4)( )。
A.strp
B.str[k][k]
C.* strp[k]
D.** strp
单项选择题
请读程序: #include <stdio.h> #include <string.h> main() char *s1= AbCdEf , *s2= aB ; s1++; s2++; printf( %d n ,strcmp(s1,s2)); 上面程序的输出结果是( )。
A.正数
B.负数
C.零
D.不确定的值
相关试题
  • 请选出以下程序的输出结果( )。 #incl...
  • 已知字符0的ASCII码为十六进制的30,现...
  • 有以下程序: #include <stdio.h> m...
  • 请读程序: #include <stdio.h> fun...
  • 读程序: #include <stdio.h> f(in...