#include <stdio.h>
int main()
{
int arr[5] = {1, 2, 3, 4, 5};
printf("Array elements: ");
for (int i = 0; i < 5; i++)
{
printf("%d ", arr[i]);
}
printf("\n");
printf("Array elements using pointers: ");
for (int i = 0; i < 5; i++)
{
printf("%d ", *(arr + i));
}
printf("\n");
return 0;
}