Complete this fun so that it replaces all occurrences of y with z in array x . The fun shld return no of replacement made. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Complete this fun so that it replaces all occurrences of y with z in array x . The fun shld return no of replacement made.

int replace(int *x, int n, int y, int z) { return 0;

15th Mar 2021, 3:21 AM
Jayasudha selvan
Jayasudha selvan - avatar
1 Answer
0
First try yourself.. and post your try if not solved...
15th Mar 2021, 9:21 AM
Jayakrishna 🇮🇳