e01.org

Offset (computer science)

In computer science, an offset within an array or other data structure object is an integer indicating the distance (displacement) between the beginning of the object and a given element or point, presumably within the same object. The concept of a distance is valid only if all elements of the object are of the same size (typically given in bytes or words). For example, if A is an array of characters containing "abcdef" , the fourth element containing the character 'd' has an offset of three from the start of A .

In computer science, an offset within an array or other data structure object is an integer indicating the distance (displacement) between the beginning of the object and a given element or point, presumably within the same object. The concept of a distance is valid only if all elements of the object are of the same size (typically given in bytes or words). For example, if A is an array of characters containing "abcdef" , the fourth element containing the character 'd' has an offset of three from the start of A . ==See also== Array Index

References

  1. ^ Kernighan, Brian W. ; Ritchie, Dennis M. (1988). The C Programming Language (2nd ed.). Englewood Cliffs, New Jersey: Prentice Hall. ISBN 0-13-110362-8 . OCLC 318301687 . Wikipedia revision 1328746976, retrieved 2026-11-20 · 1795129200.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Offset (computer science)". 1766334021. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1328746976

JSON record · API collection · citation policy