#include<stdio.h>
int main()
{
int i, *r, n;
printf("Enter Variable Number : ");
scanf("%d", &n);
int an[n];
printf("\nEnter Array Element : ");
for(i=0;i<n;i++)
{
scanf("%d", &an[i]);
}
r = &an[0];
printf("\nValue Of Array Are : ");
for(i=0;i<n;i++)
{
printf("%d ", *r);
r++;
}
getch();
}
int main()
{
int i, *r, n;
printf("Enter Variable Number : ");
scanf("%d", &n);
int an[n];
printf("\nEnter Array Element : ");
for(i=0;i<n;i++)
{
scanf("%d", &an[i]);
}
r = &an[0];
printf("\nValue Of Array Are : ");
for(i=0;i<n;i++)
{
printf("%d ", *r);
r++;
}
getch();
}
Comments
Post a Comment