如下程序段: int c[]={1, 7, 12}; int *k; k=c; printf('next k is %d',*++k); 其输出应为:
A: next k is 2
B: next k is 12
C: next k is 7
D: next k is 1
A: next k is 2
B: next k is 12
C: next k is 7
D: next k is 1
举一反三
- 下列程序段的执行结果为【 】。 K=0 For J=1 To2 For I = 1 To 3 K=I+1 Next I For I=1 To7 K=K+I Next I Next J Print K
- 循环结构 : For K=2 To 12 Step 2 K=2*K Next K 循环次数为
- 执行下列程序段:Dim a, k As Integer、a = 6、For k = 1 To 0、a = a + k、Next k、 MsgBox(Str(k) + " " + Str(a)),输出的结果是
- 运行下列程序段,语句“k = k + 1”的执行次数总共是()。For i = 1 To 10 Step 3 For j = 1 To i k = k + 1 Next jNext i A: 11 B: 12 C: 21 D: 22
- 下列程序段的执行结果为( )。 a=5 For k=1 To 0 a=a * k Next k Print k;a A: 2 2 B: 4 3 C: 4 2 D: 3 2