在计算机科学中,一个数组或数据结构对象内的偏移量是指數組或对象的起点与所要尋找的值之间的距离,該距離是一個整數值。例如在字符数组 abcdef 中,字符 d 與a之間的偏移量為3。
This article uses material from the Wikipedia 中文 article 偏移量, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). 除非另有声明,本网站内容采用CC BY-SA 4.0授权。 Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki 中文 (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.