✏️ Explanatory Question

Can you pass an entire structure to functions?

👁 794 Views
📘 Detailed Answer
💡

Answer with Explanation

Yes, it is possible to pass an entire structure to a function in a call by method style. However, some programmers prefer declaring the structure globally, then pass a variable of that structure type to a function. This method helps maintain consistency and uniformity in terms of argument type.