汗一下,以前只用过结构体之间赋值,现在可以传参数和做返回值了。
------------------------------------------------------------------------------
C89 !
C allows three operations on whole structures.
Assignment of whole structures:
s1 = s2; /* s1 and s2 are structures of the same type */
Passing a whole structure to a function:
f(s1);
Returning a whole structure from a function:
s1 = f(s2);
No other operations are allowed, including testing whole structures for equality.
阅读(1480) | 评论(0) | 转发(0) |