Description:- This is used to get structure values as an array. structValueArray( structure ); This function returns an array of the given structure. Attributes:- structure:-…