C isn't that hard: void ( *( *f[] ) () ) ()

前端 未结 13 781
名媛妹妹
名媛妹妹 2020-11-29 14:25

I just saw a picture today and think I\'d appreciate explanations. So here is the picture:

I found this confusing and wondered if such codes are ever prac

13条回答
  •  旧巷少年郎
    2020-11-29 15:08

    It's only a "spiral" because there happens to be, in this declaration, only one operator on each side within each level of parentheses. Claiming that you proceed "in a spiral" generally would suggest you alternate between arrays and pointers in the declaration int ***foo[][][] when in reality all of the array levels come before any of the pointer levels.

提交回复
热议问题