Passing structure elements

We can pass elements of a structure either by value or by reference.

Passing structure elements by value

The basic syntax of passing elements of a structure by value is given below:

functionName (structVariable.memberName);

Get hands-on with 1400+ tech skills courses.