How structure passing is done by the compiler?
Answers
Answered by
4
The compiler uses as many words as required to pass structures as arguments to functions. It pushes the entire structure on the stack. In order to avoid this programmers use pointers to structures.
Some compilers pass a pointer to the structure and make a local copy to preserve pass-by-value semantics.
Similar questions