Help us and donate little Bitcoins to pay the server costs: 1AXLPuRUBYc1JczTW4XS65GL6oWjNP2Vt2

User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer







because of the inhumane working conditions at amazon in Germany, I will offer the Amazon app no more! (ARD Reportage)
c:stdio.h:putchar

Table of Contents

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 <stdio.h> /* including standard library */
//#include <windows.h> /* 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{|}~????????????????????????????????????????????????????????????????????????????????????????????????
advertising
c/stdio.h/putchar.txt · Last modified: 2013/01/22 22:02 (external edit)

The new Question & Answer System is online and waiting for your Questions about Programming problems http://ask.code-reference.com Impressum