gpt4 book ai didi

c - C 中二维数组的访问

转载 作者:行者123 更新时间:2023-11-30 14:27:30 26 4
gpt4 key购买 nike

我正在学习 C 语言中的数组,但我被一个家​​庭作业问题难住了。

The array access a[j][k] is equivalent to

a) ((base_type*)a (j*row _ength) + k)
b) *((base_type*)a (j*row_length) + k)
c) *((base_type)a (j*row_length) + k)
d) *((base_type)a (j*row_length))
e) None of these

最佳答案

答案是:e),这些都不是。

为了更好地理解,请阅读:Arrays and pointers in C

关于c - C 中二维数组的访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7859021/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com