Right Click to Search

Wednesday, January 27, 2025

Getch function >> conio.h Header file >> Library Functions in C Programming






Getch function >> conio.h Header file >> Library Functions in C Programming

What it does :
  1. Getch accepts character from console (keyboard)
  2. Character accepted  does not echoes to the screen [not displayed on screen ]
  3. Char entered is not displayed on the screen . 
  4. It waits untill it gets a input so it can be used as a screen stopper
  5. Header File : conio.h 
int getch(void);

Live Examples :

  #include"stdio.h"
  #include"conio.h"
  void main(void)
  {
     char ch;
     printf("Hello"); // Screen is paused until we input a character
     getch();
  }


Output :
Hello         // character accepted by getch is not displayed


Tags / Keywords : | ,

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates