Jump to content

Assigning Values to an Array: Difference between revisions

m
→‎{{header|Ada}}: added code highlighting
(→‎{{header|Java}}: Added Map version)
m (→‎{{header|Ada}}: added code highlighting)
Line 11:
=={{header|Ada}}==
{{works with|GCC| 4.1.2}}
<ada>package Pkg is
type Arr is array (Positive range <>) of Integer;
procedure Assign (Value : Integer; To : in out Arr; Index : Positive);
Line 21:
To (Index) := Value;
end Assign;
end Pkg;</ada>
 
(
=={{header|ALGOL 68}}==
Declarations:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.