Single Character Output Function : putchar()

Single Character Output Function : putchar()

putchar() displays any alphanumeric characters to the standard output device. It displays only one character at a time.

Declaration:

int putch(variable_name);

putchar Example Declaration:

char ch = 'a';
putchar(ch);

Remarks:

putchar displays one character at a time to the Monitor.

putchar Example Program:

/*  Example Program For Single Character OutputFunction : putchar() In C Programming Language
    little drops @ thiyagaraaj.com
    Coded By:THIYAGARAAJ MP             */

// Header Files
#include<stdio.h>
#include<conio.h>

//Main Function
void main()
{
	char ch='a';
	putchar(ch);

	getch();
}

 

Top Pages