Can structures be assigned to variables and passed to and from functions?

Can structures be assigned to variables and passed to and from functions?
Yes, they can!
But note that when structures are passed, returned or assigned, the copying is done only at one level (The data pointed to by any pointer fields is not copied!.

No comments:

Post a Comment

comment on this post

Note: Only a member of this blog may post a comment.