博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
函数指针,指针函数
阅读量:2031 次
发布时间:2019-04-28

本文共 521 字,大约阅读时间需要 1 分钟。

You can't have any of these:

  • a function can't return a function, so you'll never see foo()()
  • a function can't return an array, so you'll never see foo()[]
  • an array can't hold a function, so you'll never see foo[]()

You can have any of these:

  • a function returning a pointer to a function is allowed: int (* fun())();
  • a function returning a pointer to an array is allowed: int (* foo())[]
  • an array holding pointers to functions is allowed: int (*foo[])()
  • an array can hold other arrays, so you'll frequently see int foo[][]

 

转载地址:http://mbtaf.baihongyu.com/

你可能感兴趣的文章
PythonStudy——列表类型 List type
查看>>
PythonStudy——字符串重要方法 String important method
查看>>
PythonStudy——列表操作 List operatio
查看>>
PythonStudy——列表的常用操作 List of common operations
查看>>
PythonStudy——数据类型总结 Data type summary
查看>>
PythonStudy——可变与不可变 Variable and immutable
查看>>
PythonStudy——阶段总结
查看>>
PythonStudy——Python中的None与 NULL(即空字符)的区别
查看>>
PythonStudy——数据类型转化 Data type conversion
查看>>
PythonStudy——字符串、列表、元组、字典、集合 (str、list、tuple、dict、set)常用方法总结...
查看>>
PythonStudy——文件操作 File operation
查看>>
PythonStudy——第一阶段性测试
查看>>
PythonStudy——内存管理之垃圾回收 Memory management Garbage collection
查看>>
PythonStudy——文件操作习题 Document operation exercises
查看>>
PythonStudy——函数的使用 Use of functions
查看>>
PythonStudy——函数的导入 Import of functions
查看>>
PythonStudy——Python 内置函数 Built-in function
查看>>
PythonStudy——函数的返回值 The return value of the function
查看>>
PythonStudy——Pycharm 小技巧
查看>>
PythonStudy——魔法函数 Magic Methods
查看>>