Saved Bookmarks
| 1. |
Write about returning structures from functions. |
|
Answer» A structure can be passed to a function through its object. Therefore, passing a structure to a function or passing a structure object to a function is the same because structure object represents the structure. Like a normal variable, structure variable(structure object) can be passed by value or by references / addresses. Similar to built-in data types, structures also can be returned from a function. |
|