Question: 3. (2 points) What two things are wrong with this program? Find first index of zero @param x array to search *@return the index of

3. (2 points) What two things are wrong with this program? Find first index of zero @param x array to search *@return the index of the first 0 in x The errors are: or -1 if absent (if none) procedure FirstZero (intl x) for (int = x.length-l:P=0;i-) return i return i; // test: x = [0, 2. 0, 4]. Expected-0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
