Skip to content

Commit 6bf5e29

Browse files
authored
_8b.pointerarray.c
1 parent 4d35595 commit 6bf5e29

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

_8b.pointerarray.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <stdio.h>
2+
int main()
3+
{
4+
int a[50];
5+
int n,i;
6+
int *p=a;
7+
printf("Enter Number of elements");
8+
scanf("%d",&n);
9+
printf("Enter Array elements \n");
10+
for(i=0;i<n;i++)
11+
{
12+
scanf("%d",(p+i));
13+
}
14+
printf("Array elements are\n");
15+
for(i=0;i<n;i++)
16+
{
17+
printf("%d\t",*(p+i));
18+
}
19+
}

0 commit comments

Comments
 (0)