Monday 10 July 2017

Putchar

Putchar 'C 'Output Function 

Putchar write a character to standard output (monitor). It takes argument as character and returns its integer form without sign. If a writing error occurs, EOF is returned and the error indicator (ferror) is set.
#include<stdio.h>
void main()
{
     char ar[]={"Girfa"};

     int i;
     for(i=0;i<5;i++)
          putchar(ar[i]);
     getch();
}

No comments:

Post a Comment