COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider the following incomplete procedure, which is intended to return the index of the smallest element in the nonempty integer array data. The index of the first element of data is 0 and length is the number of elements in data. For example, if the value of array data is {6, 7, 8, 1, 9}, the procedure is intended to return 3, the index of the array element that contains the smallest value, 1. If there are duplicates of the smallest value in the array, then the procedure returns the index of the first occurrence of the smallest value.int postionofSmallestValue (int[] data, int length )
A
if ( data[i] < guess )guess ←data[I]end if
B
if ( data[i] < guess )data[i] ←guessend if
C
if ( data[i] < data[guess] )guess ← iend if
D
None of the above
Explanation: 
There is 1 question to complete.