• 2022-06-09
    有关对foreach语句描述不正确的是
    A: foreach语句的语法为:foreach(typeidentifierinarrayName){statement;}
    B: 其中type和identifier分别表示迭代变量的类型和名称,arrayName表示要迭代的数组。
    C: foreach语句只能用来访问数组元素。
    D: 可以在foreach语句体中改变迭代变量的值。
  • 举一反三