{{keywords>wiki library source code example reference}}
===== putchar =====
int putchar(int char);
put a character into stdout
===== C Sourcecode Example =====
/*
* putchar example code
* http://code-reference.com/c/stdio.h/putchar
*/
#include /* including standard library */
//#include /* uncomment this for Windows */
int main( void )
{
int c;
c = 0; // ASCII Code a
while (c < 255) { // count chars in a while loop
putchar(c);
c++;
}
putchar('\n');
return 0;
}
output complete ASCII Table
==== Output ====
./putchar
123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~????????????????????????????????????????????????????????????????????????????????????????????????