m_t_blind
Newbie level 5
When we have a 1-dimension table, for example
char m[2],
the name of the table m is a char type pointer to the first element of the table.ok.
When we have a multi-dimension table, example
char m2[10][2],
i found that the name is't a valid pointer, and i use &m[0][0] for this.
(This on the IAR compiler for msp)
1.My first question is that this is right for general in C, or simply apears on the specific compiler ?
2.And my next question is (for the table m2):
The pointer *(&m2[0][0] + 10) points the m2[0][2]?
If no why?
char m[2],
the name of the table m is a char type pointer to the first element of the table.ok.
When we have a multi-dimension table, example
char m2[10][2],
i found that the name is't a valid pointer, and i use &m[0][0] for this.
(This on the IAR compiler for msp)
1.My first question is that this is right for general in C, or simply apears on the specific compiler ?
2.And my next question is (for the table m2):
The pointer *(&m2[0][0] + 10) points the m2[0][2]?
If no why?