单选题 以下四个程序中,完全正确的是______。
  • A.#include <stdio.h>
    main();
    { /*/programming/*/
    printf("programming!/n");}
  • B.#include
    main()
    { /*programming*/
    printf("programming!/n");}
  • C.#include <stdio.h>
    main()
    { /*/*programming*/*/
    printf("programming!/n");}
  • D.include
    main()
    { /*programming*/
    printf("programming!/n");}
【正确答案】 B
【答案解析】[解析] A选项中,“main()”函数后面不能加分号。C语言中注释语句的注释方法是:/*注释内容*/或//注释一行,且“/*”和“*/”不能嵌套使用,因此C错误。D选项中预编译命令“include <stdio.h>”前缺少“#”号。因此选择B。