Getch takes input a character from keyboard. Getch is different from scanf because user need to press enter explicitly to complete input process but getch intensely return pressed key ASCII.
Some people used getch to hold program output because when getch excuted it wait for a character and until user press a character next statement would not get executed.So if getch is used as last statement of your program it will hold output without using cntl + f5.
printf("Enter a character>> ");
printf("\nInput character is %c",ch);
Download C File