Hi anyone who answers this please answer it briefly OK..
Write the function and syntax of getchar() and gets() function??
Answers
Answer:
putchar() function is a file handling function in C programming language which is used to write a character on standard output/screen. getchar() function is used to get/read a character from keyboard input. Please find below the description and syntax for above file handling function.
.
.
Mark as brainliest plz
.
.
getchar() and gets()
Explanation:
getchar() method is the built-in method that get an individual character and store in character data type variable from the user input in C and C++ Programming Language.
Syntax:
variable_name = getchar();
Example:
char c; //declare variable
c=getchar(); //get character input from the user
getc() method is the built-in method that get string type input from the user in the staring data type variable.
Syntax:
gets(variable_name);
Example:
char c[50]; //declare variable
getchar(c); //get string input from the user
Learn more:
https://brainly.in/question/9294033