strcpy is prone to buffer overflows. Use strncpy() instead
strcpy(dest, src)
copy the src values into the dest address
#include <string.h>
int main() {
{
char str1[20] = "C programming";
char str2[20];
// copying str1 to str2
strcpy(str2, str1);
}