为啥数组的索引一般从0开始?

假设从1开始
i_addr = base_addr + sizeof(elemtype) * (i - 1);
会有更多额外的开销

posted @ 2025-07-22 20:01  小白正在学习  阅读(5)  评论(0)    收藏  举报