Question: using c++ Implement a function that counts the number of negative integers in a two-dimensional array with 100 rows and 100 columns. The function takes
using c++
Implement a function that counts the number of negative integers in a two-dimensional array with 100 rows and 100 columns. The function takes a two-dimensional array of int and returns the number of negative numbers in it. A declaration of the function is shown below. int countNegatives(int a[100][100]);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
