Question: need help the Assembly code to find minimum value in an array of float values. i have this so far but the output is 2

need help the Assembly code to find minimum value in an array of float values. i have this so far but the output is 2.2 instead of 1.1 for min value, please help me modify this, my test code: #include
using namespace std;
extern "C"{
float floatMin(float[], int);;
}
int main()
{
// declare an array of floats to pass into assembly functions
const int SIZE =5;
float floatArr[SIZE]={2.2,3.75,1.11,5.9,4.64};
// display the array content
printf("The array contains the float numbers: ");
for (int i =0; i SIZE; i++)
printf("%f ", floatArr[i]);
//call assembly function to compute minimum
float min = floatMin(floatArr, SIZE);
printf("The smallest float is: %f
", min);
return 0;
}
 need help the Assembly code to find minimum value in an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!