C C++

C Input


The C programming language offers built-in functions for handling input operations, allowing user input to be read from the keyboard. 

These functions enable the program to receive user-provided values.

Below are the built-in input functions available in C:

  • scanf()
  • getchar()
  • getch()
  • gets()
  • fscanf()

scanf() Function

getchar() Function

getch() Function

gets() Function

fscanf() Function