#include<stdio.h>
int main()
{
char str[5];
gets(str); //reads a string of character from keyboard ****NOT SAFE TO USE****
puts(str); //prints string to the console
getchar(); //waits for a character
return 0; //successful termination of the program
}
int main()
{
char str[5];
gets(str); //reads a string of character from keyboard ****NOT SAFE TO USE****
puts(str); //prints string to the console
getchar(); //waits for a character
return 0; //successful termination of the program
}
0 comments:
Post a Comment