#include<stdio.h>
int main()
{
char str[5]; //declaration of character array
fgets(str,5,stdin); //better control than gets
fputs(str,stdout);//prints the string of characters to the console
fflush(stdin); //flushes the carriage return
getchar(); //waits for character input
return 0; //EXIT_SUCCESS
}
int main()
{
char str[5]; //declaration of character array
fgets(str,5,stdin); //better control than gets
fputs(str,stdout);//prints the string of characters to the console
fflush(stdin); //flushes the carriage return
getchar(); //waits for character input
return 0; //EXIT_SUCCESS
}
0 comments:
Post a Comment