View previous topic :: View next topic
|
Author |
Message |
Poha Eater
New User
Joined: 31 Aug 2016 Posts: 74 Location: India
|
|
|
|
Hi,
I am trying to learn PL/I and i am a beginner in this. I am trying to figure out how ADDR works. Can anyone please explain what ADDR does in PL/I and provide an example for better understanding. I know this is very basic question but I have read on IBM manuals but i did not get much from there.
I was going through the below example :
ADDR(Table1) = ADDR(Table2)
Does this means that values of array (Table2) are assigned to the another array named as Table1 ? Please let me know what this declaration means in above example.
Many Thanks in advance for your time ! |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2018 Location: USA
|
|
|
|
1) this is senseless expression, and wrong PL/I syntax
2) There is a special forum for beginners |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I agree that you really need to be posting in Beginners and Students Forum instead of here.
The ADDR function in PL/I manipulates ADDRESSES -- not data. So if you have a pointer variable P1 and you code
then P1 is set to the address of X. Note that it does NOT matter what the definition of X is, nor does it matter what X contains -- P1 is set to the address in memory of variable X. |
|
Back to top |
|
|
Poha Eater
New User
Joined: 31 Aug 2016 Posts: 74 Location: India
|
|
|
|
Thank you for your responses. I was not aware that there is separate forum for Beginners. Going forward i will ask my questions there. Thanks ! |
|
Back to top |
|
|
|