FORTRAN 77 Language Reference

Example


       CHARACTER A*4, B*4, C(2)*3 
       EQUIVALENCE (A,C(1)),(B,C(2))

The association of A, B, and C can be graphically illustrated as follows. The first seven character positions are arranged in memory as follows:

 

         01 

        02 

         03 

         04 

        05 

        06 

        07 

       A(1) 

       A(2) 

        A(3) 

       A(4) 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

       B(1) 

        B(2) 

       B(3) 

       B(4) 

 

 

 

 

 

 

 

 

     C(1)(1) 

     C(1)(2) 

     C(1)(3) 

     C(2)(1) 

     C(2)(2) 

     C(2)(3)