Yes structures can be passed to functions by value. Though passing by value has two disadvantages:
1) The charges by the calling function are not reflected
2) It’s slower than the pass by reference function call.
1) The charges by the calling function are not reflected
2) It’s slower than the pass by reference function call.
No comments:
Post a Comment