top of page
Getchar / Putchar
Getchar and Putchar are functions within the standard library that can take a single character input or output a single character variable. To define and initialize a variable as user input we can use char c = getchar();
We can then output the variable using putchar(c);
Output:

Example:

bottom of page