Driver code
int main ( ) { vector < int > arr = { 1 , 2 , 3 } ; cout << GcdOfArray ( arr , 0 ) << " STRNEWLINE " ; arr = { 2 , 4 , 6 , 8 } ; cout << GcdOfArray ( arr , 0 ) << " STRNEWLINE " ; return 0 ; }