Can you pass an entire structure to functions?

4 years ago
C Programming

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.

0
Sanisha Maharjan
Jan 20, 2022
More related questions

Questions Bank

View all Questions