---
title: Offset (computer science)
slug: offset-computer-science
qid: 
snapshot: enwiki-001328746976
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1328746976
tags: [20202781, 20346051, 23118434, 23468805, 23603337, 24043274, 47074602, 48316298, 53043714, 68328988]
---

# Offset (computer science)

> [!note] Provenance
> Snapshot `enwiki-001328746976` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1328746976> · Licensed CC BY-SA 4.0

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
