在C语言中,要计算一个数(变量i)的平方根,下面代码正确的是()A) printf(sqrt(t),"\n Square of%d",i)\x05\x05\x05B) printf("\n Square of%d is %d",i,sqrt(i))C) printf(sqrt(i),i.t,"\n Square of%d is %d")\x05\x05D) printf(i,t"\n Square of%d")e) printf(i,"\n Square of%d is %d",sprt(i))
问题描述:
在C语言中,要计算一个数(变量i)的平方根,下面代码正确的是()
A) printf(sqrt(t),"\n Square of%d",i)\x05\x05\x05
B) printf("\n Square of%d is %d",i,sqrt(i))
C) printf(sqrt(i),i.t,"\n Square of%d is %d")\x05\x05
D) printf(i,t"\n Square of%d")
e) printf(i,"\n Square of%d is %d",sprt(i))
答
只有B正确呢,
考的是printf的用法.