Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Equivalence - Is this correct? 2

Status
Not open for further replies.

jamez05

Programmer
Jul 29, 2005
130
US
I have a function that uses the following equivalence statement.

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?
 
Now you have to find one where the answer is no.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top