Function pointer without arguments types?

后端 未结 3 1051
鱼传尺愫
鱼传尺愫 2020-12-17 03:06

I was trying to declare a function pointer that points to any function that returns the same type. I omitted the arguments types in the pointer declaration to see what error

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-17 03:59

    Empty parentheses within a type name means unspecified arguments. Note that this is an obsolescent feature.

    C11(ISO/IEC 9899:201x) §6.11.6 Function declarators

    The use of function declarators with empty parentheses (not prototype-format parameter type declarators) is an obsolescent feature.

提交回复
热议问题