solve problems
Thursday, 21 July 2011
program array with pointer in c
BlogThis!
|
Email This!
|
Print This!
|
No comments
Do you like this post?
#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();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment