Home
Site Map
Useful Tools
Graphing Calc

Scientific Calculator

Arrays in C++

void printReverse(int nums[], int len)
Description: This function takes an array nums and its length and prins the array in reverse oder..
Method Call return value/output
printReverse({2,3,4} ,3 ) 2
3
4
printReverse({3 , 4 } 2 } 2
3
double mean(int nums[], int len)
Description: This function calculates the arithmetic mean of the array nums.
Method Call return value/output
mean({2,3,4} ,3 ) 3
mean({3 , 4 } 2 } 3.5
int largest(int nums[], int len)
Description: This function returns the largest value of the array.
Method Call return value/output
largest({2,3,4} ) 4
largest({,5,12,3,7, 4 } } 12