Quick Contact

✉
fahimkhan20148@gmail.com
📱
+971 507 286 133
Back to Notes
September 12, 2026
pointersmemoryoptimizationaliasing

Restricted Pointers

Used when we want to indicate that the same memory location can't be accessed by more than one pointer. So the compiler can apply some optimisations.

Making a pointer restrict and accessing it with another pointer is undefined behaviour.