单选题
👁️ 浏览量:

试题题干

设 int a=2;,则表达式double pow 10(int a)的值为()

A

2

B

10

C

20

D

100

参考答案

正确答案:

试题解析

double pow 10(int x)是计算10的x次幂函数,因为int a=2,所以表达式double pow 10(int a)的值为10²=100。