0

There are some definitions as follows about point and array . I am always puzzled about them. So I think there must some ways to understand them then can help me to remember.

int b[10]     
int* b[10]  
int (*b)[10]
int* (*b)[10] 

Maybe there are more formally-similar that you can add; Can anyone help me to understand them and put them in heart.

Fanl
  • 1,491
  • 2
  • 11
  • 15

1 Answers1

0

Use this website if your ever confused.

But some people learn visually (in order):

b [ 1...10 ]

b [ 1  ...  10]
    |       |
    int     int

b --> [ 1...10 ]

b --> [ 1  ...  10]
        |       |
        int     int
yizzlez
  • 8,757
  • 4
  • 29
  • 44