Putchar() function displays a character on the screen. - C Data Type

C examples for Data Type:char

Description

Putchar() function displays a character on the screen.

Demo Code

#include <stdio.h>
int main()//  w w  w  .  j a  va  2s. co m
{
   puts("Press Enter:");
   getchar();
   putchar('H');
   putchar('e');
   putchar('l');
   putchar('l');
   putchar('o');
   putchar('!');
   putchar('\n');
   return(0);
}

Result


Related Tutorials