Search This Blog

Translate

C program example accept and print array element

Write C Program to Accept Array Element and Print it Using Pointer, how to Write Write C Program to Accept Array Element and Print it Using Pointer , c programming array with pointer using call by reference , Write C Program to Accept Array Element and Print it Using function


#include<stdio.h>
#include<conio.h>
void main()
{
  int a[5],*ptr;
  clrscr();

  printf("\t Enter arry Element");
  for(ptr=a;ptr<a+5;ptr++)
  {
  scanf("%d",ptr);

  }



   printf("\n \t Element are");
  for(ptr=a;ptr<a+5;ptr++)
  {
  printf("\n \t %d",*ptr);

  }

 getch();
}

C Program example List

Google+ Badge