下面的程序在编泽时产生错误,其出错原因是( )。 #include<stdio.h> main() {int 1_case;float printF; printf("请输入2个数:"); scanf ("%d%f",&1_case,&printF); printf("%d%f\n",1_case,printF); }
A.定义语句出错,1_case不能作为变量名
B.定义语句出错,printF不能用作用户自定义标识符
C.定义语句无错,scanf不能作为输入函数使用
D.定义语句无错,printf不能输出1_case的值
第1题:
下列4个程序中,完全正确的是( )。
A.#include<stdio.h> main(); (/*programming*/ printf("programming!\n");}
B.# include<stdio.h> main() {/*/programming/*/ printf("programming!\n");}
C.#include<stdio.h> main() {/*/programming*/*/ printf("programming!\n");)
D.include<stdio.h> main() {/*programming*/ printf("programming!\n");}
第2题:
以下4个程序中,完全正确的是
A.#include<stdio.h> main(); {/*programming*/ printf("programming!\n");}
B.#include<stdio.h> main() {/*/programming/*/ printf("programming!\n");}
C.#include<stdio.h> main() {/*/*programming*/*/ printf("programming!\n")}
D.include<stdio.h> main() {/*programming*/ printf("programming!\n");}
第3题:
以下四个程序中,完全正确的是()
A.#include <stdio.h> main(); {/*/ programming /*/ printf("programming!n");}
B.#include <stdio.h> main() {/* programming */ printf("programming!n"); }
C.#include <stdio.h> main() {/*/* programming */*/ printf("programming!n"); }
D.include <stdio.h> main() {/* programming */ printf("programming!n"); }
第4题:
以下4个程序中,完全正确的是( )。
A.#include <stdio.h> main(); {/* programming */ printf("programming!\n");}
B.#include <stdio.h> main() {/*/ programming /*/ printf("programming!\n");}
C.#include <stdio.h> main() {/*/* programming */*/ printf("programming!\n");}
D.#include <stdio.h> main() {/* programming */ printf("programming!\n");}
第5题:
以下四个程序中,完全正确的是______。
A.#include <stdio.h> main(); {/*programming*/ printf("programming!\n");}
B.#inc lude<stdio.h> main() {/*/programming/*/ printf("programming!\n");}
C.#include <stdio.h> main() {/*programming*/ printf("programming!\n");}
D.include<stdio.h> main() {/*/*programming*/*/ printf("programming!\n");}