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
- 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 · retrieved 2026-11-19 · rev 1328746976
Cite this reference
MLA "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." Kernighan, Brian W. 2026-11-19. https://en.wikipedia.org/wiki/Brian_Kernighan. Accessed 24 November 2026.
Chicago "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." Kernighan, Brian W. 2026-11-19. https://en.wikipedia.org/wiki/Brian_Kernighan.
APA Kernighan, Brian W. (2026). 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. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Brian_Kernighan
Cite this article
MLA
"Offset (computer science)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/offset-computer-science. Accessed 24 November 2026.
Chicago
"Offset (computer science)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/offset-computer-science.
APA
encyclopegia.org. (2025). Offset (computer science). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/offset-computer-science
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON