struggle with understanding this code properly. Is whatIsThis a proper name for the class on functions of the program or should it be something else. I have not been able to manage to get the program compiled with the source code //Ex. 7.18: Ex07_18.cpp //What does this program do? #include using std::cout; using std::endl; int whatIsThis(int[], int); // This is the function prototype which tells the // compiler that program would have the definition of // a function named whatIsThis and would have the parameters // integer array and an integer value int main() // main function { const int arraySize = 10; // declares a constant integer variable and initializes it to 10 int a[arraySize] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; // declares an array a with size arraySize and initializes it int result = whatIsThis(a, arraySize); // it calls the function whatIsThis and passes array a and arraySize values and receives // an integer value from the function cout
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |