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,346
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • 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
      • 239 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

    Related Questions

      • Answers: 0

      c keep asking for input how to write a program

      I want to write a C program if the user to input something which a given condition. For example I want to write the user  put a real number. Until user inputs real number C program should ask for the

      • Answer: 1

      How do you find the factorial of a number in

      I got to see programming assignment where I need to find factorial for a given number.  How do we find the factorial of a number in C using while loops? And there was a condition like I should only use loops

      • Answer: 1

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

      What Is A "null Pointer Assignment" Error? What Are Bus Errors, Memory Faults, And Core Dumps?Is there any way to overcome these errors? if yes what are the ways and how can we do it?

      • Answers: 2

      What is OOPs concept in C++ with examples?

      Iam a "c"  language learning now, because of this reason I want information about opps concept in C++ with examples? Please give me a answer this question

      • Answer: 1

      What is the use of github?

      What is the use of Github? Can we use Github? uses of Github? How to use Github? Who uses GitHub?

    Stats

    • Questions 1,882
    • Answers 1,966
    • Posts 8
    • Best Answers 71

    Recent Questions

      • Answer: 1

      Can't change Instagram password try again later fix

      I try to change the Instagram password but I am unable to change. To give

      • Answer: 1

      How do you reset your Snapchat account password without a

      Is there a way to login to Snapchat account without any email and phone number.

      • Answer: 1

      How to snapchat account recovery without phone number

      I couldn't login to my Snapchat account I don't know whether my Snapchat account is

      • Answer: 1

      benefits of microsoft teams for teachers

      In a school organization what are some useful benefits of having Microsoft teams. I want

      • Answer: 1

      Gifts for teachers from students unique and impressive

      This year we are going to be parted from my school as I completed my

    Explore

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

    Footer

    Recent Comments

    • Latha on Can’t change Instagram password try again later fix
    • dynamicapps5 on How do you reset your Snapchat account password without a phone number or email account?
    • Sailu on How to snapchat account recovery without phone number
    • Likitha on benefits of microsoft teams for teachers
    • sita on Gifts for teachers from students unique and impressive
    Ask A Question

    Archives

    Tags

    android 11 release date (1) Google News App (1) if x+y+z=0 show that x3+y3+z3 is equal to (1) if x+y+z=0 show that x3+y3+z3=3xyz (1) if x+y+z=0 show that x3+y3+z3=3xyz solution (1)

    Social media

    © 2021 @ 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.