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

difference between 'getch()' and 'getche()'

Discussion in 'C' started by meyup, Apr 13, 2010.

  1. meyup

    meyup New Member

    Joined:
    Feb 15, 2010
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    0
    I can't find the difference between 'getch()' and 'getche()'

    Please help me.
     
  2. techme

    techme New Member

    Joined:
    Feb 15, 2010
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    0
    Re: Tell me the difference

    I think it's a simple.
    there is nothing difference in compilation. For 'getche' the last term 'e' is used to halt the program before compilation for few seconds.
     
  3. techme

    techme New Member

    Joined:
    Feb 15, 2010
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    0
    Re: Tell me the difference

    And one thing i think that u can find it in every text books.
     
  4. inspiration

    inspiration New Member

    Joined:
    Feb 15, 2010
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    0
    Re: Tell me the difference

    The 'e' in 'getche' may termed as an echo.
    After compilation before running if you press any key that could be seen in the screen. But if we use 'getch' it will not happen.
     
  5. meyup

    meyup New Member

    Joined:
    Feb 15, 2010
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    0
    Re: Tell me the difference

    Thanks to every body for helping me.
     
  6. blade101

    blade101 New Member

    Joined:
    Apr 14, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    Re: Tell me the difference

    Same here. Do they even different from each other?
     

Share This Page