Anonymous functions using GCC statement expressions

后端 未结 4 1730
感情败类
感情败类 2020-11-29 20:07

This question isn\'t terribly specific; it\'s really for my own C enrichment and I hope others can find it useful as well.

Disclaimer: I know many w

4条回答
  •  盖世英雄少女心
    2020-11-29 21:13

    1. int (*max)(int, int) is the type of variable you are declaring. It is defined as a function pointer named max which returns int, and takes two ints as parameters.

    2. __fn__ refers to the function name, which in this case is max.

    3. I don't have an answer there. I would imagine you can step through it if you have run it through the preprocessor.

提交回复
热议问题