how to make two arrays equal in c

C
void Set::getData(Set& tempSet) const.
{
for (int i = 0; i < size; i++)
tempSet[i] = set[i];
}
Source

Also in C: