Get a string and print the string

Get the input string from the user and print it.



#include <stdio.h>
#include<string.h>
int main(void) {
   char *s;
   s=(char*)malloc(sizeof(char));
   scanf("%s",s);
   printf("%s",s);
   return 0;
}