单项选择题

下述程序的输出结果是( )。
#include<stdio.h>
void main()
int a[5]=1,2,3,4,5;
int *p=a,**q=&p;
printf("%d,",*(p++));
printf("%d",**q);

A) 2,2 B) 1,1 C) 3,4 D) 1,2
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include <stdio.h> main() int i,s=0; for(i=1;i<10;i+ =2) s+ =i+1; printf( %d n ,s); 程序执行后的输出结果是( )。
A) 正整数1~9的累加和
B) 正整数1~10的累加和
C) 正整数1~9中奇数之和
D) 正整数1~10中偶数之和
单项选择题
执行下列程序时输入456<空格>789<空格>123<回车>,输出结果是()。 #include<stdio.h> main() char m[80]; int c,i; scanf( %c ,&c); scanf( %d ,&i); scanf( %s ,&m); printf( %c,%d,%s n ,c,i,m);

A.456,789,123
B.4,789,123
C.4,56,789,123
D.4,56,789

相关试题
  • 下列程序的运行结果是______。 #de...
  • 下列程序的输出结果是______。 #in...
  • 函数fun的功能是计算xn。 double fun(do...
  • 若有说明char s1[]= That girl ,s...
  • 若有下列定义:int a[]=1,2,3,4...