9951 explained code solutions for 126 technologies


cCopy one string to another


#include <string.h>
strcpy(x,y);ctrl + c
include <string.h

Name of library to be included

strcpy(x,y)

Function to copy the string y to string x (note: x string need to have the same or greater length than y)