/*How to write Program to illustrate unformatted Output: putch(), putchar(), fputchar()*/
putch(), putchar(), fputchar() all are used to output one character at a time.
#include<stdio.h>
#include<conio.h>
int main()
{
char ch='z';
printf("\nBy using putch:");
putch(ch);
printf("\nBy using putchar:");
putchar(ch);
printf("\nBy using fputchar:");
fputchar(ch);
return 0;
}
putch(), putchar(), fputchar() all are used to output one character at a time.
#include<stdio.h>
#include<conio.h>
int main()
{
char ch='z';
printf("\nBy using putch:");
putch(ch);
printf("\nBy using putchar:");
putchar(ch);
printf("\nBy using fputchar:");
fputchar(ch);
return 0;
}
0 comments: