| 4. |
How do you get the number of elements in an array?
Please select the correct answer:
|
| |
A.
|
Check the array in scalar context; for example, scalar @array |
| |
B.
|
Test for a null; for example, if (@array[$i] == 0) |
| |
C.
|
Use a special function or macro; for example, sizeof @array |