How do you decipher complex declarations of pointers+arrays?

后端 未结 7 1582
醉话见心
醉话见心 2021-02-06 17:08

Although I use std::vector almost all the time, I am interested in understanding as much as I can about pointers. Examples of what I am talking about:



        
7条回答
  •  离开以前
    2021-02-06 17:40

    you always read pointers from right to left interpreting the '*' as a pointer. for example char** a[5] is an array of 5 pointers to pointers of characters...

提交回复
热议问题