gpt4 book ai didi

c - out[i] = *(a_mat + i) 在 C 中做什么?

转载 作者:行者123 更新时间:2023-12-01 12:32:20 24 4
gpt4 key购买 nike

while( i < a_rows * a_cols ) {
out[i] = *(a_mat + i); // this line
i++;
}

标记线的作用是什么?

最佳答案

它获取a_mat + i 指向的任何值。它可以写成 a_mat[i]

关于c - out[i] = *(a_mat + i) 在 C 中做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1581580/

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