#include <iostream>
using namespace std;
int main() {
int array[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
int *ptr = &array[4];
int i = ptr - array;
std::cout<< i<< '\n';
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgYXJyYXlbXSA9IHswLCAxLCAyLCAzLCA0LCA1LCA2LCA3LCA4LCA5fTsKCQoJaW50ICpwdHIgPSAmYXJyYXlbNF07CgkKCWludCBpID0gcHRyIC0gYXJyYXk7CglzdGQ6OmNvdXQ8PCBpPDwgJ1xuJzsKCQoJcmV0dXJuIDA7Cn0=