1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

second last element of the vector

Discussion in 'C' started by heidik, Nov 9, 2010.

  1. heidik

    heidik New Member

    Joined:
    Oct 23, 2010
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    0
    Could anyone please tell me how to get the second last element of the vector since back() returns the last element

    Thanks
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
  3. heidik

    heidik New Member

    Joined:
    Oct 23, 2010
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    0
    YES xpi0t0s Thanks :)
     

Share This Page