SoFunction
Updated on 2025-03-10

Summary of basic knowledge points of c language

What does c language mean

conio is the abbreviation of Console Input/Output, which defines functions for data input and data output through the console. It is mainly the corresponding operations generated by some users by pressing the keyboard, such as the getch() function, etc.

It is a library file. When functions such as getch() are used in the program, this library file needs to be introduced into the code.

#include <>

int main()

{

  char c;

  c=getch();   /*Reading a character from the keyboard will not echo the character variable c*/

  putchar(c);  /*Output this character*/

}

getch() is a function used in programming. This function is a function that does not echo. When the user presses a certain character, the function will be automatically read without pressing Enter. Some C command line programs will use this function to make games

Compared with the getchar() function, getch() does not require a buffer, nor does the user need to press the Enter key, it will directly read the input characters from the keyboard.

The benefits of using getch(): it directly gets keyboard input, which is suitable for instant input programs such as making games.

The above is the detailed content of what C language means. If you have any supplements, please contact me.