7-10-10: Given the following code segment, which of the following will cause an infinite loop? Assume that temp is an int variable initialized to be greater than zero and that a is an array of ints.
for ( int k = 0; k < a.length; k++ )
{
while ( a[ k ] < temp )
{
a[ k ] *= 2;
}
}
A. The values don't matter this will always cause an infinite loop.
B. Whenever a includes a value that is less than or equal to zero.
C. Whenever a has values larger then temp.
D. When all values in a are larger than temp.
E. Whenever a includes a value equal to temp.