What is the correct way to use strcpy() function? I have done it in two ways, and both times the program worked just fine, so I was wondering what's "more correct" way to use it. I want to copy string s2 to s1.
This one:
s1=strcpy(s1, s2);
or to just write:
strcpy(s1, s2);