#include <iostream>

int main() {
    int a[10] = {1,2,3,4,5,6,7,8,9,10};

    int *b = a;
    int *c = &b[0];

    printf("%d\n",a[2]);
    printf("%d\n",b[2]);
    printf("%d\n",c[2]);

    // c[2] = 5;
    *(c+2) = 5;

    printf("%d\n",c[2]);
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: