How do you decipher complex declarations of pointers+arrays?

后端 未结 7 1719
醉话见心
醉话见心 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:58

    I learned the clockwise/spiral rule long ago from some magazine article. Here's an online article that describes the technique:

    • http://c-faq.com/decl/spiral.anderson.html

    It's served me well, though I still struggle mightily with some of the monstrous template-based declarations I come across at times.

提交回复
热议问题