单项选择题
有以下计算公式:若程序前面已在命令行中包含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) =sqdrt(-x); D. y=sqrt(x>=0x:-x);
A. gae B. ga C. Language D. 有语法错
A. scanf("%d",&(*p).age); B. scanf("%s",&std.name); C. scanf("%c",&std[0],sex) D. scanf("%c",&(p->sex));