#include <cstddef>
#include <iostream>
int main()
{
int values [5] = { 1, 2, 3, 4, 5 };
int * v = values;
std::cout << "v address: " << v << ", points to " << *v << '\n' ;
++v;
std::cout << "v address: " << v << ", points to " << *v << '\n';
std::cout << "Distance in bytes: " << (std::ptrdiff_t)v - (std::ptrdiff_t)(values) << '\n';
std::cout << "Distance in elements: " << v - values << '\n';
}
I2luY2x1ZGUgPGNzdGRkZWY+CiNpbmNsdWRlIDxpb3N0cmVhbT4KCmludCBtYWluKCkKewogICAgaW50IHZhbHVlcyBbNV0gPSB7IDEsIDIsIDMsIDQsIDUgfTsKCiAgICBpbnQgKiB2ID0gdmFsdWVzOwoKICAgIHN0ZDo6Y291dCA8PCAidiBhZGRyZXNzOiAiIDw8IHYgPDwgIiwgcG9pbnRzIHRvICIgPDwgKnYgPDwgJ1xuJyA7CgogICAgKyt2OwogICAKICAgIHN0ZDo6Y291dCA8PCAidiBhZGRyZXNzOiAiIDw8IHYgPDwgIiwgcG9pbnRzIHRvICIgPDwgKnYgPDwgJ1xuJzsKICAgIHN0ZDo6Y291dCA8PCAiRGlzdGFuY2UgaW4gYnl0ZXM6ICIgPDwgKHN0ZDo6cHRyZGlmZl90KXYgLSAoc3RkOjpwdHJkaWZmX3QpKHZhbHVlcykgPDwgJ1xuJzsKICAgIHN0ZDo6Y291dCA8PCAiRGlzdGFuY2UgaW4gZWxlbWVudHM6ICIgPDwgdiAtIHZhbHVlcyA8PCAnXG4nOwoKfQ==