For deleting the elements from the right of the array ___ function is used.

Ánh Dương

New member
For deleting the elements from the right of the array ___ function is used.
A. pop
B. push
C. queue
D. shift
 
Answer: a
Explanation: perl provides a handful of functions for manipulating the contents of any array. For example, perl uses the pop function to delete the right-most element of an array.
Code:
@list= (3. .5,9) ;      // this is 3,4,5,9
pop(@list)             // now it is 3,4,5
 

Tìm kiếm

Back
Top