Programming Languages
C
Subjective
Mar 15, 2013
Grooving and shortening of arrays and Splicing of arrays
Detailed Explanation
a.)Grooving and shortening of arrays.
Grooving and shortening of arrays can be done by directly giving a non existent index to which Perl automatically adjusts the array size as needed.
b.)Splicing of arrays
Splicing copies and removes or replaces elements from the array using the position specified in the splice function instead of just extracting into another array.
Syntax: splice ARRAY, OFFSET, LENGTH, LIST
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts