Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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;
}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

=+1.2. Show that N and N are dense [A15] in (0, 1].

Answered: 1 week ago