I need a description of this program

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 #include<stdio.h>
 int main()
{

        int k; int a[]={1,2,3}; int *b[3]; int**c[3];

        int ***d[3]; int ****e[3]; int *****f[3];

        for(k=0;k<3;k++)

        {

        b[k]=a+k; c[k]=b+k; d[k]=c+k;

        e[k]=d+k; f[k]=e+k;

        }

        for(k=0;k<3;k++)

        {

        printf("%3d",*b[k]);

        printf("%3d",**c[k]);

        printf("%3d",***d[k]);

        printf("%3d",****e[k]);

        printf("%3d\n",*****f[k]);

        }

        }
Smells like pointer homework :)
Topic archived. No new replies allowed.