Consider the program below:
public class Test { public static void main( String[] args ) { int[] a; a = new int[ 10 ]; for ( int i = 0; i < ; i++ ) a[ i ] = i + 2;
int result = 0; for ( int i = 0; i < ; i++ ) result += a[ i ];
System ( "Result is: %d\n", result ); } // end main } // end class Test
The output of this program will be:
a. Result is: 62.
b. Result is: 64.
c. Result is: 65.
d. Result is: 67.