How does compiler fetch elements from array of objects?

前端 未结 0 1667
無奈伤痛
無奈伤痛 2021-01-04 11:08

Whenever we want to fetch elements based on index from an array, I learned that the compiler just does something like

array_addr + ele_size * (i - first_index)<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题