I have a function that uses the following equivalence statement.
chatm is a one dimensional array that holds two elements and ATM is declared as INTEGER*2
I'm still not 100% on how the equivalence statement works. Here is a statement about equivalence that I found on the web:
An EQUIVALENCE statement specifies that the storage sequences of the entities whose names appear in a list nlist have the same first storage unit.
Does this mean atm equals the first element in array chatm?
Code:
EQUIVALENCE (ATM,CHATM)
chatm is a one dimensional array that holds two elements and ATM is declared as INTEGER*2
I'm still not 100% on how the equivalence statement works. Here is a statement about equivalence that I found on the web:
An EQUIVALENCE statement specifies that the storage sequences of the entities whose names appear in a list nlist have the same first storage unit.
Does this mean atm equals the first element in array chatm?