【答案】下面程序的运行结果为()。Dim a%, b%, c%Sub p1(x%, y%) Dim c As Integer x

返回首页智慧树时间:2022-11-15 19:17
题目 / 答案提交正确答案

下面程序的运行结果为()。Dim a%, b%, c%Sub p1(x%, y%) Dim c As Integer x = 2 x: y = y + 2: c = x + yEnd SubSub p2(x%, ByVal y%) Dim c As Integer x = 2 * x: y = y + 2: c = x + yEnd SubPrivate Sub Command1_Click() a = 2: b = 4: c = 6 Call p1(a, b) Call p2(a, b) Print a; b; cEnd Sub

A. 4 6 6

B. 8 6 6

C. 4 6 10

D. 8 8 6

正确答案:8 6 6

本文链接:https://www.oyuuu.com/Ti/ZhiHuiShu/352364.html

关键字  浏览量:
上一篇:在窗体上画一个命令按钮(名称为Command1),并编写如下代码:Function Fun1(ByVal a As In
下一篇:以下是一个能返回数组a中最大数的函数过程代码: Function maxval(a() As Integer) As I
相关问题