View previous topic :: View next topic
|
Author |
Message |
Haripriya3103
New User
Joined: 29 Jun 2005 Posts: 3
|
|
|
|
I have a variable declared in a existing program as mentione below:
DCL A(1:4) DEC FIXED(10);
Can any one help me in understanding what does A(1:4) actually mean... ?
Thanks. |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
Back to top |
|
|
karnatikalyan
New User
Joined: 08 Feb 2006 Posts: 5
|
|
|
|
Hi,
DCL A(1:4) DEC FIXED(10);
It is single dimentional array where it can have 4 rows and 1 column.
for A(1:4), 1 represents the lower bound and 4 represents the upper bound of A.
Here is another example
DCL A(1:4, 1:4) DEC FIXED(10); is a two dimetional array where a can have 1 to 4 rows and 1 to 4 columns like 4 X 4 matrix.
Regards,
Karnati kalyan. |
|
Back to top |
|
|
|