Pointers created using Interfaces. C.Pointers are access types, and can be used like any other access type. Addition and subtraction is performed the same way as in C by specifying how many positions in the array to move. The Value function returns a slice from the array, from the position of the pointer to the end of the array or until a terminator is found. It can also slice a specific number of elements from an array.
Array copies a slice from the pointer position until a terminator is found.
The following program demonstrates C pointers to integer arrays. To use Interfaces. Moving forward three elements, it now points at 8 Subtraction moves the pointer backwards. The length from the pointer to the first 14 is 5 positions Value returns the array slice from the pointer position to the terminator. Although the basic Ada types are identical to their C counterparts, the IO libraries are not guaranteed to write data in a format that is readable from other languages.