* Question:
What different between const int * , int const * , int * const ?
* Answer:
int*
- pointer to intconst int * == int const *
- pointer to const intint * const
- const pointer to intconst int * const == int const * const
- const pointer to const int
int **
- pointer to pointer to intint ** const
- a const pointer to a pointer to an intint * const *
- a pointer to a const pointer to an intint const **
- a pointer to a pointer to a const intint * const * const
- a const pointer to a const pointer to an int
* Reference:
沒有留言:
張貼留言