IHYPRESS PROGRAMMING
Tutorials and C programs with code and output for beginners
c programming
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
CData Types & Operators : getchar and putchar
<02.04>
/* getchar() and putchar() */
#include <stdio.h> int main (void) { char c; printf ("Enter a character: "); /* getchar() gets a single character from the keyboard */ c = getchar(); printf ("The character is: "); /* putchar() prints a single character on the screen */ putchar (c); return (0); }
Hergestellt in Deutschland / Made in Germany
Enter a character: @ The character is: @
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland