C program to read and display an array using pointer

OUTPUT