When using the REDEFINES clause in COBOL, what happens to the memory occupied by the redefined data items?

  • It is deallocated
  • It is marked as read-only
  • It is reallocated with a new address
  • It is shared with the original data item
When the REDEFINES clause is used in COBOL, the memory occupied by the redefined data items is shared with the memory of the original data item. This means both the original and redefined data items refer to the same memory location, enabling different ways to interpret the stored data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *