Unformatted single character output function
putch() function
int main()
putchar() function
int main()
Read latest blog
putch() function
We use this function for printing a single character value.
syntex
putch(char variable);
int main()
{
char ch;
printf("enter value of ch ");
ch =getch();
printf("\n value of ch is \t ");
printf("\n value of ch is \t ");
putch(ch);
}
Input enter value of ch a
then don't need to hit enter
then don't need to hit enter
Output value of ch is a
putchar() function
We use this function for printing a single character value.
syntex
putchar(char variable);
int main()
{
char ch;
printf("enter value of ch ");
ch =getch();
printf("\n value of ch is \t ");
printf("\n value of ch is \t ");
putchar(ch);
}
Input enter value of ch a
then don't need to hit enter
then don't need to hit enter
Output value of ch is a
Read latest blog
Then wat is d difference between using putch putchar
ReplyDeleteyou must be so intelligent 😂
ReplyDeleteTime pass kar raha hai.....
ReplyDelete