Google explains it well: EOF is a condition in a computer operating system where no more data can be read from a data source. The data source is usually called a file or stream.
{{5,10,15,20},{25,30,35,40}} is answer where zero is not found.
<u>Explanation:</u>
This program finds zero in giving as arrays of value as a parameter. The program has two loop. One is a row of the array and the other is column loop for each row o an array. For loop is created with a variable namer row and the loop ends with a length of the array of each row.
In side row for loop col loop is created and loop ends with each row-column length of cells. If data in each cell i.e (row, col) calue is zero it returns true and the loop is terminated immediately.
In case if the value of the cell doesn’t found zero it never terminates the loop and continuous loop and returns a false value. Find Zero functions accept the two-dimensional array and check whether cell value is zero. If it is zero found return true otherwise it returns false.
The answer to this question is given below in the explanation section.
Explanation:
#include <iostream>
// it is preprocessor director that manipulate the input output in the program
using namespace std;// it is used to format input and output
int main() {
// main function is started
int x = 5;
// variable x is declared and initialized with value 5.
int y = 6;
//variable y is declared and initialized with value 6.
int z = 34; //variable z is declared and initialized with value 34.
int total = (x+(x + y)*z+y);
// variable total is declared and initialized with value of x,y,and z. and calculation performed on these value such as (5+(5+6)*34+6) that is equal to 385.
cout << total;
// print the value of total variable that is 385