How do you decipher complex declarations of pointers+arrays?

后端 未结 7 1588
醉话见心
醉话见心 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 18:05

    [] has higher precedence than *, that's why it's an array of pointers and not the other way around.

提交回复
热议问题