若定义x为double型变量,则能正确输入x值的语句是(    )。 A.

scanf("%f",x);  B.

scanf("%f",&x); C.

scanf("%lf",&x); D.

scanf("%5.1f",&x);