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:

getcharputchar2.png

Example:

getcharputchar1.png
  • Twitter
  • LinkedIn
  • discord-logo--v2
  • kisspng-github-pages-logo-repository-fork-github-logo-1-magentys-5b69de71b51265

Dragon Eye Intelligence LLC

bottom of page