What does having two asterisk ** in Objective-C mean?

后端 未结 5 1029
梦如初夏
梦如初夏 2020-12-03 02:08

I understand having one asterisk * is a pointer, what does having two ** mean?

I stumble upon this from the documentation:

- (NSAppleEventDescriptor          


        
5条回答
  •  [愿得一人]
    2020-12-03 02:39

    In C pointers and arrays can be treated the same, meaning e.g. char* is a string (array of chars). If you want to pass an array of arrays (e.g. many strings) to a function you can use char**.

提交回复
热议问题