March 1, 2012

Arrays

Characteristics of Arrays

  1. With array we can run push and pop fastest by deciding where to inert and where to delete an element in array.
  2. We can use add(), remove() functions to add an element to array inside the list and remove respectively from the current position.
  3. Add() moves the elements to right and place given value to current position. Remove() function shifts elements to left instead of leaving that position as empty.
  4. get() is used to show/retrieve the current element of an array.
  5. update() will replace/update the value of the element of an array for the current position.
  6. length() is used to get the size of the list not the size of array inside list.
  7. back() is used to move current position to left or decrement.
  8. start() takes us to the first position of the list.
  9. end() sets the current position equal to the size of list or can say the last position of the list.
Last updated: March 19, 2014
Did it helped? One thought on “Arrays
  1. Legier50

    It constantly amazes me exactly how Blog owners for example yourself can find enough time and the commitment to keep on Crafting superb posts your website http://www.websitedesignwebsitedevelopment.com/website-development/c/arrays/577 is excellent and one of my own have to read personal blogs, I had been more than impressed with the post Website Designing Website Development Arrays I simply had to say thanks and congratulations Kind regards horny

Comments are closed.