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

以下程序的运行结果是_______。#includestdio.hmain(){int a[]={1 2 3 4 5 6 7 8 9 10 11 12};i


以下程序的运行结果是_______。 #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=*(p+5); printf("%d %d\n",*p,*q); }

A.运行后报错

B.6 6

C.6 12

D.5 5

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 试题7以下程序运行后的输出结果是______。#include <stdio.h>main(){ int a=37; a%=9; prin

  • 试题8以下程序运行后的输出结果是_____。#include <stdio.h>main(){ int i, j;for(i=6; i&g

  • 试题11以下程序运行后的输出结果是______.#include <stdio.h>void fun(int x){ if(x/5>

  • 试题13以下程序运行后的输出结果是______.#include <stdio.h>main(){ int n[2], i, j;for(

  • 下面程序的运行结果是______。 #include #include fun(char*w int n) { char

  • 以下程序运行后的输出结果是_______。include<stdio.h>main( ){int a=200 b=010;print(”%d%