Aug 10 2007 08:34 AM 1642 4 getch();}What will be the output of above program?How?"> #include#includevoid main(){static int a[]={0,1,2,3,4};clrscr();int *p[]={a,a+1,a+2,a+3,a+4};printf("n%un%un%d",p,*p,*(*p));getch();}What will be the output of above program?How? saurabh08_chd coolquasar Profile Answers by coolquasar Questions by coolquasar Sep 15th, 2008 It works like thisAddress of a[0] = aa[0] = 0 (<--1000 Address)a[1] = 1 (<--1004 Address)a[2] = 2 (<-- 1008 Address)a[3] = 3 (<-- 1012 Address)a[4] = 4 (<-- 1016 Address)Address of p[0]... Swati H. Sanu Oct 15th, 2007 P is the adress of a and *p is value at address a[0] and *(*p) is again address of a Answer Question Select Best Answer
Aug 10 2007 08:34 AM 1642 4 getch();}What will be the output of above program?How?"> #include#includevoid main(){static int a[]={0,1,2,3,4};clrscr();int *p[]={a,a+1,a+2,a+3,a+4};printf("n%un%un%d",p,*p,*(*p));getch();}What will be the output of above program?How? saurabh08_chd coolquasar Profile Answers by coolquasar Questions by coolquasar Sep 15th, 2008 It works like thisAddress of a[0] = aa[0] = 0 (<--1000 Address)a[1] = 1 (<--1004 Address)a[2] = 2 (<-- 1008 Address)a[3] = 3 (<-- 1012 Address)a[4] = 4 (<-- 1016 Address)Address of p[0]... Swati H. Sanu Oct 15th, 2007 P is the adress of a and *p is value at address a[0] and *(*p) is again address of a Answer Question Select Best Answer
coolquasar Profile Answers by coolquasar Questions by coolquasar Sep 15th, 2008 It works like thisAddress of a[0] = aa[0] = 0 (<--1000 Address)a[1] = 1 (<--1004 Address)a[2] = 2 (<-- 1008 Address)a[3] = 3 (<-- 1012 Address)a[4] = 4 (<-- 1016 Address)Address of p[0]...
Swati H. Sanu Oct 15th, 2007 P is the adress of a and *p is value at address a[0] and *(*p) is again address of a