Which of the following is an associative array?

Ngân Lam

New member
Which of the following is an associative array?
A. a[ ]
B. arr[ ]
C. envr [ ]
D. ENVIRON[ ]
 
Answer: d
Explanation: awk doesn’t treat array indices as integers. Awk arrays are associative (hash) arrays. Similarly, ENVIRON[ ] is also an associative array, known as environment array which is used to store all environment variables.
 

Tìm kiếm

Back
Top