gegege123gege
2015-12-14 02:28C语言结构体的指针问题。
struct GenInfo {
uint64_t (*next)(struct GenInfo * const);
enum GeneratorType type;
union {
struct GenInfo_Constant constant;
struct GenInfo_Counter counter;
struct GenInfo_Discrete discrete;
struct GenInfo_Exponential exponential;
struct GenInfo_File file;
struct GenInfo_Histogram histogram;
struct GenInfo_HotSet hotset;
struct GenInfo_Zipfian zipfian;
struct GenInfo_Latest latest;
struct GenInfo_Uniform uniform;
} gen;
};
该结构体内的第一行: uint64_t (*next)(struct GenInfo * const); 这一行表示的是什么?
是不是指向下一个该结构体的指针呢?
谢谢。
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- 函数调用结构体指针的时候出现了一个很神奇的情况
- c语言
- c++
- 1个回答
- c++类的成员函数返回结构体的问题
- c语言
- 开发语言
- c++
- 1个回答
- C语言结构体指针的问题?
- c
- typedef
- 结构
- 指针
- 5个回答
- 关于c语言结构体指针的小问题
- c
- 对象
- 指针
- struct
- 1个回答
- c语言指针问题和函数调用吧
- c指针
- 4个回答
换一换