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

Convert String to Integer

Discussion in 'C' started by sumit12, Sep 14, 2010.

  1. sumit12

    sumit12 New Member

    Joined:
    Sep 10, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    how can i convert string "154" to an integer 154???
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    1
    Trophy Points:
    0
    With the help of the function atoi
     
  3. sumit12

    sumit12 New Member

    Joined:
    Sep 10, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    can u explain me how this function works??
     
  4. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    1
    Trophy Points:
    0

Share This Page