Friday, April 17, 2009

ADDVAL

#include
void main()
{
int i=3;
int *j;
j=&i;
clrscr();
printf("Address of i= %u\n",&i);
printf("Address of j =%u\n",&j);
printf("Address of i= %u\n",&i);
printf("value of i= %d\n",i);
printf("value of j= %d\n",*j);
printf("value of i= %d\n",*(&i));
printf("value of i= %d\n",i);
getch();
}

No comments: