# Bounded pointer

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Bounded_pointer
> Markdown URL: https://mediated.wiki/source/Bounded_pointer.md
> Source: https://en.wikipedia.org/wiki/Bounded_pointer
> Source revision: 1215772786
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources. Find sources: "Bounded pointer" – news · newspapers · books · scholar · JSTOR (March 2024)

In [computer science](/source/Computer_science), a **bounded pointer** is a [pointer](/source/Pointer_(computer_programming)) that is augmented with additional information that enable the storage bounds within which it may point to be deduced.[1] This additional information sometimes takes the form of two pointers holding the upper and lower [addresses](/source/Memory_address) of the storage occupied by the object to which the bounded pointer points.

Use of bound information makes it possible for a [compiler](/source/Compiler) to generate code that performs [bounds checking](/source/Bounds_checking), i.e. that tests if a pointer's value lies within the bounds prior to dereferencing the pointer or modifying the value of the pointer. If the bounds are violated some kind of [exception](/source/Exception_(computing)) may be raised. This is especially useful for data constructs such as [arrays](/source/Array_data_structure) in [C](/source/C_(programming_language)).

## See also

- [Bounds-checking elimination](/source/Bounds-checking_elimination)

- [Smart pointer](/source/Smart_pointer)

- [Tagged pointer](/source/Tagged_pointer)

## References

1. **[^](#cite_ref-1)** Reese, Richard (2013). [*Understanding and Using C Pointers: Core Techniques for Memory Management*](https://books.google.com/books?id=K4P32IpvyNMC). O'Reilly Media, Inc. p. 167. [ISBN](/source/ISBN_(identifier)) [9781449344566](https://en.wikipedia.org/wiki/Special:BookSources/9781449344566).

This computer-programming-related article is a stub. You can help Wikipedia by adding missing information.

- [v](https://en.wikipedia.org/wiki/Template:Compu-prog-stub)
- [t](/source/Template_talk%3ACompu-prog-stub)
- [e](https://en.wikipedia.org/wiki/Special:EditPage/Template:Compu-prog-stub)

---
Adapted from the Wikipedia article [Bounded pointer](https://en.wikipedia.org/wiki/Bounded_pointer) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Bounded_pointer?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
