How are Structure passing and returning implemented by the complier?

QuestionsCategory: C ProgrammingHow are Structure passing and returning implemented by the complier?
Surya Chaudhary asked 3 weeks ago
Please follow and like us:
1 Answers
AdminAdmin answered 3 weeks ago

When structures are passed as argument to functions, the entire structure is typically
pushed on the stack. To avoid this overhead many programmer often prefer to pass pointers to structure instead of actual structures. Structures are often returned from functions in a location pointed to by an extra, compiler-supported hidden’ argument to the function.

Please follow and like us: