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 Chriss Miller 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
Joined
Jul 29, 2005
Messages
130
Location
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?
 
That must be the shortest answer that ever got a star...
 
Now you have to find one where the answer is no.
 
That deserves another star
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top