New course! Every coder should learn Generative AI!
Try a free lesson+ 1
To replace all the occurrences of the number n with 0 in the given array
a problem using function
1 Answer
+ 1
for (int i = 0; i < len(array); i++)
{
if array[i] = n
{
array[i] = 0;
}
}