假设struct_name
是我定义的结构体的名称,而array是定义为char array[o]
的结构体中的成员
下面的代码行会产生什么结果? (*struct_name).array
地址位置?
最佳答案
是的(假设 struct_name 是指向您的结构的指针,否则取消引用就没有意义)
顺便说一句,为什么不做 struct_name->array 呢?
关于c - 处理 C 中的结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1655731/