第31941题 单选题
在C++语言中,已知数组定义为`int nums[5] = {2,4,6,8,10};`,以下哪项是合法且能正确访问到值为8的元素的写法?

不考虑编译器特殊扩展,仅按照C++标准语法判断。

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析