Sign Up

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

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
  • 44 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
  • 252
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • How to run graphics program in c?

    1 Answer

    1. Ravi Ujjwal

      Ravi Ujjwal

      • India
      • 12 Questions
      • 65 Answers
      • 4 Best Answers
      • 209 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 WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Choose from here the video type.

    Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs Ex: 'sdUUx5FdySs'.

    Sidebar

    Ask A Question

    Stats

    • Questions 943
    • Answers 1k
    • Posts 7
    • Best Answers 42

    Related Questions

    • What is the use of github?

      • 1 Answer
    • How to fix broken commit

      • 1 Answer
    • in turbo c how to change the cursor

      • 0 Answers
    • How to print all characters from a string in C.

      • 0 Answers
    • How to run graphics program in c?

      • 0 Answers
    • Recent
    • Comments
    • Tags
    • Android 11 OS Features List | All You need to know about ANDROID 11

      Android 11 OS Features List | All You need to

    • Things to consider when buying a AC

      Things to consider when buying a AC

    • Things to consider when buying a printer

      Things to consider when buying a printer

    ac buying guide android 11 android 11 os features android 11 release date best specs for new smartphone to buy buy best smartphone android features list of android 11 google news Google News App google search app how to find best smart phone key configuration for best laptop key points before buying ac laptop buying guide laptop buying key points laptop choosing points limit google news notifications new smartphone choosing guide new things on android 11 points to remember for buying laptop printer buying guide remove google news smart phone buying guide stop google news notifications things to consider before buying laptop turn off google news turn off google news notifications

    Recent Questions

    • Kakao talk account suspended right after I made it

      • 0 Answers
    • Modern warfare game is crashing since update I need to

      • 0 Answers
    • bluetooth speaker- can't reset, will not unpair

      • 0 Answers
    • Khandor hideout map crashing after modern warfare update

      • 0 Answers
    • How to solve emergency calls only problem in jio

      • 1 Answer

    Explore

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

    Footer

    Recent Comments

    • dynamicapps5 on how to solve export problem in kinemaster
    • Akansha Singh on how to see instagram private account posts
    • dynamicapps5 on How to solve emergency calls only problem in jio
    • KineMaster on how to solve export problem in kinemaster
    • Ridhi Mehta on How to resolve 100% disk usage on windows 10
    Ask A Question

    Questions Categories

    • Android
    • Animation
    • Artificial Intelligence and Machine Learning
    • AWS
    • C Language

    Archives

    • September 2020
    • August 2020
    • July 2020

    Social media

    Terms & Privacy policy
    © 2020 All Rights Reserved @
    Techanswered.

    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.