若chara[10];已正确定义,以下语句中不能从键盘上给a数组的所有元素输入值的语句是()

A.gets(a); B.scanf(%s,a); C.for(i=0;i<10;i++)a[i]=getchar; D.a=getchar;

时间:2024-02-11 17:26:42

相似题目