publicint total( int[] x ){
int i, t = 0 ;
//select statement to go here
{
t += x[ i++ ] ;
}
return t ;
}
A. for( int i = 0 ; i < x.length ; )
B. for( i = 0 ; i < x.length ; )
C. for( i = 0 ; i < x.length ; i++ )
D. for( i = 1 ; i <= x.length ; i++ )
5.15.Questions
5.15.1.
What is the correct statement for line 3 to sum all elements in an array?