单选题

阅读以下程序

#include <stdio.h>

main()

{

    int case; 

    float printF; 

    printf("Please enter 2 numbers:"); 

    scanf("%d %f",&case,&printF); 

    printf("%d %f\n",case,printF);

}

该程序在编译时产生错误,其出错原因是(    )

A

定义语句出错,printF不能用作用户自定义标识符

B

定义语句出错,case是关键字,不能用作用户自定义标识符

C

定义语句无错,scanf不能作为输入函数使用

D

定义语句无错,printf不能输出case的值

赣ICP备20007335号-2