以下程序的运行结果是( )。 main() { int a[3]={1,2,3}; int *num[3]; int **p,i; for(i=0;i<3;i++) num[i]=&a[i]; p=num; printf("%d",**p);}
以下程序运行后,文件test.txt的内容是( )。 #include <stdio.h> main() { FILE *fp; char str[][10]={"first","second"}; fp = fopen("test.txt", "w"); if(fp!=NULL) fprintf(fp,"%s",str[0]); fclose(fp); fp = fopen("test.txt", "w"); if(fp!=NULL) fprintf(fp,"%s",str[1]); fclose(fp); }
一个窗体单击事件过程如下: Private Sub Form_Click() X = Val(Text1.Text):Y = Val(Text2.Text) If X = 0 Or Y = 0 Then Print "不在任何象限内": Exit Sub If X > 0 And Y > 0 Then Print "IN A" If X > 0 And Y < 0 Then Print "IN D" If X < 0 And Y > 0 Then Print "IN B" If X < 0 And Y < 0 Then Print "IN C"End Sub
单击窗体时,下列程序代码的执行结果为___________。Private Sub Form_Click() x = Int(Rnd) + 5 If x * x > 8 Then y = x * x + 1 If x * x = 9 Then y = x * x * x If x * x < 8 Then y = x * x - 3 Print yEnd Sub
一个窗体单击事件过程如下: Private Sub Form_Click() x = Int(Rnd) + 10 If x * x > 10 Then y = x + 1 If x * x = 8 Then y = x * x If x * x < 10 Then y = x * x + 5 Print yEnd Sub试问:当单击窗体后,输出为___________。