Question: #include using namespace std; / / This is the C prototype of the assembly function, it requires externC to / / show the name

#include
using namespace std;
//This is the C prototype of the assembly function, it requires extern"C" to
//show the name is going to be decorated as _test and not the C++ way of
//doing things
extern"C"{
int avg(int*, int);
}
int main()
{
const int SIZE =7;
int arr[SIZE]={1,2,3,4,5,6,};
int val = avg(arr,SIZE);
cout "The function average returned: " val endl;
return 0; what should i put after all done: that devide eax by ecx and store results in eax and make the program find the average of array
#include using namespace std; / / This is the C

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 Programming Questions!