How do I pass a structure by reference to a function ?
Posted on: Sun, 2007-02-25 21:48
How do I pass a structure by reference to a function ?
Hi All,
I am new to C and C++.
I want to pass a structure to a function by reference. How can I do that ?
Thanks,
JavaCoder

Hi,
HTH,You can pass a structure by reference by passing the address of the structure and in the called function accept the address of the structure in a variable which is of type pointer to the structure.
Mahendra