单项选择题

已定义数组:int a[100];下列哪条语句能将数组a的所有元素都赋值为10?()

A.a[0]=a[1]=......=a[99]=10;
B.for (int n =99;n >=0;n--)a[n]=10;
C.a[0~99]=10;
D.for (int n =1;n