//getchar and putchar test
#include <stdio.h>
#include <stdlib.h>
int main()
{
char ch;
printf("enter a character\n");
ch = getchar();
printf("entered character is ");
putchar(ch);
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
char ch;
printf("enter a character\n");
ch = getchar();
printf("entered character is ");
putchar(ch);
return 0;
}
No comments:
Post a Comment