Question: ine 5 in the function below can be replaced with _ _ _ _ . 1 void strcopy ( char string 1 [ ] ,

ine 5 in the function below can be replaced with ____.
1 void strcopy (char string1[], char string2[])
2{
3int i =0;
4
5while (string2[i]!='\0')
6{
7string1[i]= string2[i];
8i++;
9}
10string1[i]='\0';
11}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!