Question: 1. The following function is supposed to return true if any element of the array a has the value 0 and false if all oloments

1. The following function is supposed to return true if any element of the array a has the value 0 and false if all oloments are non-zeros. Sadly, it contains an error. Find the errors and show how to fox it bool haa zeo int a.int n) int ii for (i 0; i it (n211 n-3 else ceturn (Eo (n+l) foo(n+2)) int maino print("dfoo (a) (b) include tdi> define SIEE 10 int whatIsThis( int b[], int P } { return bto1 int main( void ) ? int a sIZE 1, 2.3, 4. 5, 6, 7, 8, 9, 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
