String concatenation using strcat library function

Given two strings, concatenate two strings into one string using strcat (string concatenate ) library function.


Implementation:

#include <stdio.h>
#include<string.h>
#include<stdlib.h>

int main(void) { 
 
  char *s,*v;
  
  s=(char*)malloc(sizeof(char));
  v=(char*)malloc(sizeof(char));
  
  scanf("%s",s);
  scanf("%s",v);
  
  strcat(s,v);
  
  printf("%s",s);
  
  return 0;
}