单项选择题

有下列公式:
若程序前面已在命令行中包含math.h 文件,不能够正确计算上述公式的程序段是_____。 A.
if(x>=0) y=sqrt(x); else y=sqrt(-x) ; B.
y=sqrt(x); if(x<0) y=sqrt(-x); C.
if(x>=0) y=sqrt(x) ; if(x<0) y=sqrt(-x); D.
y=sqrt(x>=0? x:-x);