#6 | Pointers | Write a Program to store n Elements in an array and print them using Pointers
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFZyk0BYGsypdArYkTYEui1H278UX7uDkXuPYglNOyeZD6ZDCBe2KM4yV7XtLLtJDbFt-VJRuIK_oEZ5rdlbyLMudpbISKy3rP0CylkOoHVl3FvVYmJVGuS7kVLzhW_rNWH_17I3ALZFqemt1ERsQeMKZwbeU9TgBb9OXPsnfL8HyICwT_H5F2UjbM_Q/s320/1596023305925.jpg)
YouTube Video :- Question :- Write a Program to store n elements in an array and print the elements using pointers Code :- // 6. Write a program to store n elements in an array and print the //elements using pointer. #include <stdio.h> void main() { // declare array and pointer variable int a[ 5 ],i; int *p; // collect values from user and store them in an array for (i = 0 ; i < 5 ; i++) { printf( "\n Enter Number :- " ); scanf( "%d" ,&a[i]); } // assign the address of array's first number p = &a[ 0 ]; // print values of array printf( "\n\nPrinting Values of array a\n" ); for (i = 0 ; i < 5 ; i++) { printf( "\n a[%d] = %d" ,i,*p); p++; } } Description :- In This Program our query is to store n Elements is an array using pointers and also print them. In Previous Practical Videos we learn that how to store memory address of a