Allocate Primitive Array

Mnemonic nwa
Statement x = new type[b]
Description Sets x to a new array of a primitive type of length b. Each entry is set to their default values. Throws an unable to allocate exception if there is no more memory to allocate. Throws invalid operand if b is not a whole number or is less than 0.
Type Computational
Categories
  • data
Variants
md x = new number[b]
mb x = new boolean[b]
mc x = new char[b]
id x = new number[3]
ib x = new boolean[3]
ic x = new number[3]
Types
Exceptions
  • unable to allocate
  • invalid operand
Relaxations
Contact Information

We would be more than happy to help you. Our opening hours are 9–15 (CET).

[email protected]

📞 (+47) 93 68 22 77

Nils Bays vei 50, 0876 Oslo, Norway

Copyright © 2018-24 progsbase.com by Inductive AS.