What does the following program do copy the sample program


What does the following program do?. Copy the sample program and compile it, then find the results. Submit a report which is more than one page length to explain how the program works and how you can improve it. Your report should be formatted according to APA style as outlined in the Ashford Writing Center. Write comments in C++ comments

#include
std::cout:
std::cout:

int what is this( int [], int );

int main()

{

Const int arraysize = 10;
int a[ arraySize ] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
int result = whatIsThis( a, arraySise );
cout << "Result is" << result << end1;
return 0; //
}// end main
//
Int whatIsThis( int b[]. Int size )
{
If ( size == 1 ) // Base case
Return b[ 0 ];
Else // recursive step
Return b9 size - 1] + whatIsThis( b, size - 1 );
] //

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: What does the following program do copy the sample program
Reference No:- TGS01009447

Expected delivery within 24 Hours