Showing posts with label program array with pointer in c. Show all posts
Showing posts with label program array with pointer in c. Show all posts

Thursday, 21 July 2011

program array with pointer in c

#include"stdio.h"
#include"conio.h"
void main()
{
int arr[4]={1,2,3,4};
int a,*b;
for(a=0;a<4;a++)
{
printf("value of arr[%d] = %d",a,*b);
printf("address of arr[%d] = %u",a,b);
b=b+1;
}
getch();
}