ch 8/e11.c
//Function to calculate sum of the global array

Function to calculate sum of the global array
Function to calculate sum of the global array
int sum_array ( void )
	{
		int sum = 0 ;
		for ( int i = 0; i < 10; i++ )
			sum += total_classes [i] ;
		return sum ;
	}
int sum_array ( void ) { int sum = 0 ; for ( int i = 0 ; i < 10 ; i ++ ) sum += total_classes [ i ] ; return sum ; }
Function to calculate sum of the global array
Function to calculate sum of the global array