若有以下说明,则数值为4的表达式是( )。int a[12]={1,2,3,4,5,6,7,8,9,10,11,12};char c='a',d,g;
A: a[4]
B: a['d'-c]
C: a[g-c]
D: a['d'-'c']
A: a[4]
B: a['d'-c]
C: a[g-c]
D: a['d'-'c']
举一反三
- 若有以下说明,则数值为4的表达式是( )。int a[12]={1,2,3,4,5,6,7,8,9,10,11,12};char c='a',d,g; A: a[4] B: a['d'-c] C: a[g-c] D: a['d'-'c']
- 若有以下说明,则数值为4的表达式是( )。int a[12]={1,2,3,4,5,6,7,8,9,10,11,12};char c='a',d,g; A: a[4] B: a['d'-c] C: a[g-c] D: a['d'-'c']
- 若有以下说明,则数值为4的表达式是( )。int a[12]={1,2,3,4,5,6,7,8,9,10,11,12};char c='a',d,g; A: a[4] B: a['d'-c] C: a[g-c] D: a['d'-'c']
- 若有以下说明,则数值为4的表达式是( )。int a[12]={1,2,3,4,5,6,7,8,9,10,11,12};char c='a',d,g; A: a[4] B: a['d'-c] C: a[g-c] D: a['d'-'c']
- 下面程序的输出结果是( )。L=[('b', 3), ('c', 1), ('d', 2), ('a', 5)]L.sort()print(L) A: {('a', 5), ('b', 3), ('c', 1), ('d', 2)} B: [('a', 5), ('b', 3), ('c', 1), ('d', 2)] C: [('c', 1), ('d', 2), ('b', 3), ('a', 5)] D: [('b', 3), ('c', 1), ('d', 2), ('a', 5)]