以下程序的输出结果是D)9 12 Option Base 1 Private Sub Command1_Click() Dim s(10),p(3)As Integer k=5 For i=1 To 10 a(i)=i Next i For i=1 To 3 p(i)=a(i*i) Next I For i=1 To 3 k=k+ p(i)*2 Next i Print k End subA.33B.28C.35D.37

以下程序的输出结果是D)9 12 Option Base 1 Private Sub Command1_Click() Dim s(10),p(3)As Integer k=5 For i=1 To 10 a(i)=i Next i For i=1 To 3 p(i)=a(i*i) Next I For i=1 To 3 k=k+ p(i)*2 Next i Print k End sub

A.33

B.28

C.35

D.37


相关考题:

有以下程序 main() { char str[][10]={"China","Beijing"},*p=str; printf("%s\n",p+10); } 程序运行后的输出结果是A.ChinaB.BeijingC.ngD.ing

有以下程序 main(){ char str [] [10]={"China", Beijing"},*p=str; printf("%s\n",p+10);} 程序运行后的输出结果是A.ChinaB.BeijingC.ngD.ing

有以下程序: main() { char str[][10]={"China","Beijing"),*P=str; printf("%s\n",p+10); } 程序运行后的输出结果是 ______。A.ChinaB.BeijingC.ngD.ing

有以下程序main( ){char str[ ][10]={"China","Beijing"},*p=str;printf("%s\n",p+10);}程序运行后的输出结果是A.ChinaB.BejingC.ngD.ing

以下程序运行后,输出结果是______。includess(char*s){char *p=s; while(*.p)p++; retu 以下程序运行后,输出结果是______。#include<stdio.h>ss (char *s){ char *p=s; while(*.p)p++; return(p-s);}main(){ char *a="abded"; int i; i=ss((A); print ("%d\n",i);}A.8B.7C.6D.5

以下程序的输出结果是()。includeint fun (char*s){char *p=s;while (*p!='\0,) p++ 以下程序的输出结果是( )。 #include<iostream.h> int fun (char*s) { char *p=s; while (*p!='\0,) p++: return (p-s): } void main() { cout<<fun (" ABCDEF ")<<endl: }A.3B.6C.8D.0

有以下程序: main() { char str[][10]={"China","Beijing"),*p=str; printf("%s\n",p+10); } 程序运行后的输出结果是( )。A.ChinaB.BeijngC.ngD.ing

以下程序运行后的输出结果是【】。 include void main(){char s[]=“123456”,*p;for(p=s 以下程序运行后的输出结果是【 】。include<iostream.h>void main(){char s[]=“123456”,*p;for(p=s; p<s+2; p++)cout<<p<<end1;}

以下程序的输出结果是______。includestruct stu{int num; char name[10]; int age;};v 以下程序的输出结果是______。#include<stdio.h>struct stu{ int num; char name[10]; int age;};void fun(struct stu*p){ printf("%s\n",(*p).name);}main(){ struct stu students[3]={ {9801,"Zhang",20}, { 9802,"Wang",19}, { 9803,"Zhao",18} }; fun(students+2);}A.ZhangB.ZhaoC.WangD.18

以下程序的输出结果是( )。main{char str[][10]={china,beijing),*p=str;printf(%s\n,p+10);}A.ChinaB.BeijingC.ngD.ing