+ 1
How to pass the whole structure into function?
Please explain elaborately how to pass structures to function and the prototype declaration is to be provided inside main or we can declare it outside main too?
2 Antworten
+ 4
<return type> function_name( <structure name> variable_name, parameter 2... )
{
}
function call
function_name(structure_variable);
+ 1
Create an object of the structure... then pass it to the function by reference.