单项选择题

有以下程序: main() { int a[10]={1,2,3,4,5,6,7,8,9,10},*p=&a[3],*q=p+2; printf("%d\n",*p+*q); } 程序运行后的输出结果是______。

A.16
B.10
C.8
D.6
<上一题 目录 下一题>
热门 试题

单项选择题
下列选项,不正确的是( )。
A. for(int a=1;a<=10;a++);
B.int a=1; do }   a++; }while(a<=10)
C.int a=1; while(a<=10) }    a++ }
D.for(int a=1;a<=10;a++) a++;
单项选择题
已知有定义constintD=5;inti=1;doublef=0.32;charc=15;则下列选项错误的是( )。
A. Private Sub Form_MouseDown(Button As Integer, Shift As Integer,_               X As Single, Y As Single)   If Button=2 Then PopupMenu Bt, 2  End Sub
B.Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _               X As Single, Y As Single)   PopupMenu Bt  End Suh
C. Private Sub Form MouseDown(Button As Integer, Shift As Integer, _               X As Single, Y As Single)   PopupMenu Bt,0  End Sub
D.Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _               X As Single, Y As Single)   If (Button=vbLeftButton) Or ( Button=vbRightButton) Then PopupMenu Bt  End Sub
相关试题
  • 执行以下程序后,test.txt文件的内容是(...
  • 下面这个程序的结果是( )。#include<i...
  • 有如下程序 #includeusing namespace s...
  • 有如下程序:#includeusing namespace s...
  • 有如下程序#include#includeusing names...