Passing Structures To Functions
If a function requires a structure as a parameter, you will pass it to the function like any ordinary variable. In the code example below, there are two variables: a and b, declared with the type complex. The function display() takes one parameter of type complex. So, you can simply pass either the variable a or b to the function display() as shown below.