Why getch is used at the end of every c program?

1 answer

Answer

1036143

2026-08-27 11:35

+ Follow

getch() takes one char from keyboard but it will be invisible to us. in other Words we can say that it waits until press any key from keyboard.

getch() is a function which has its protype defined in conio.h header file.

it is basically used to take input a single characterfrom keyboard. and this char is not displayed at the screen.

it waits until itn gets a input that's why it can be used as a screen stopper.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.