Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 567
Next
Answered
shiv
shiv

shiv

  • India
  • 31 Questions
  • 9 Answers
  • 0 Best Answers
  • 41 Points
View Profile
  • 0
shiv
Asked: August 30, 20202020-08-30T18:56:19+05:30 2020-08-30T18:56:19+05:30In: C Language

What’s difference between getch() and getche()?

  • 0

What’s difference between getch() and getche() in C language? Which one is used when? What difference it will make in program?

c languagegetch()getche()
  • 1
  • 1,872
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • code for matrix multiplication in c
    • how to learn programming/coding from basic?
    • How to run graphics program in c?

    1 Answer

    1. Ravi Ujjwal

      Ravi Ujjwal

      • India
      • 12 Questions
      • 68 Answers
      • 4 Best Answers
      • 242 Points
      View Profile
      Best Answer
      Ravi Ujjwal
      2020-08-31T01:37:27+05:30Added an answer on August 31, 2020 at 1:37 am

      Both these functions reads character data type from input in the C program. They both are unformatted console I/O functions which is not present in the <iostream.h> but present in <conio.h>. We don’t need to press the ‘Enter’ key after the character is entered unlike scanf(). Also, both of these takes only one character as input.

      getch()

      When the character is entered it is not displayed on monitor and the character we entered is returned by this function’s definition which can be assigned to some char variable in our program.

      It gives output without any buffer.

      It doesn’t have echo on screen.

      getche()

      Working of getche() function is same as getch() except the fact that it does display the character entered by user on monitor.

      Gives output with buffer.

      It has echo on screen when returned.

      Hope your doubts are cleared.

      • 2
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • glenn

      code for matrix multiplication in c

    • Tech savvy

      c keep asking for input how to write a program

    • Mingle tap

      How do you find the factorial of a number in

    • Namrata

      What Is A "null Pointer Assignment" Error? What Are Bus

    • Hari

      What is OOPs concept in C++ with examples?

    • Samakshi baghel

      What is the use of github?

    • Samakshi baghel

      How to fix broken commit

    • shree

      in turbo c how to change the cursor

    Stats

    • Questions 1,988
    • Answers 2,095
    • Posts 12
    • Best Answers 73

    Related Questions

    • glenn

      code for matrix multiplication in c

    • kushwanth

      how to learn programming/coding from basic?

    • shiv

      How to run graphics program in c?

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • shree on How to use philips citrus press juicer 25 watts Demo
    • kiran kumar85 on How To Insert Names Automatically in Excel Sheet With VBA Code
    • Satish on How To Insert Names Automatically in Excel Sheet With VBA Code
    • jameslaurence on alarm won’t go off while on facetime how to fix
    • jameslaurence on how to solve export problem in kinemaster
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.