C Programming Code Examples C > Pointers Code Examples C Program to Access Elements of an Array Using Pointer C Program to Access Elements of an Array Using Pointer #include <stdio.h> int main() { int data[5], j; printf("Enter elements: "); for(j = 0; j < 5; ++j) scanf("%d", data + j); printf("You entered: \n"); for(j = 0; j < 5; ++j) printf("%d\n", *(data + j)); return 0; }