#include <stdio.h>

int main()
{
    int y=0;
    int a[5];
    for(int f=0; f<5; f++)
    {
        a[f]=f+1;
    }

    int * ptr = &a[4];


    for(int f=0; f<5; f++)
    {
        y= y+*(ptr-f);
    }
    printf("%d", y);

    
}

Embed on website

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