gpt4 book ai didi

c - 在C编程中执行该语句时,对数组执行什么操作++arrayname[value[i]/10];

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

这里我只想知道在这个语句中使用这个增量运算符时执行了什么操作。在数组之前使用增量运算符意味着什么?

最佳答案

在其他地方都意味着同样的事情:增加其后面的内容。

这里,那个东西是arrayname[value[i]/10],即value[i]/10th元素数组名称

int array[] = { 0, 1, 2, 3 };  // Array has: 0, 1, 2, 3
++array[0]; // Array has: 1, 1, 2, 3

关于c - 在C编程中执行该语句时,对数组执行什么操作++arrayname[value[i]/10];,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58781473/

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