1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Artist 52 [7]
3 years ago
14

Write a function that returns a pointer to the maximum value of an array of float ingpoint data: double* maximum(double* a, int

size) If size is 0, return NULL.
Computers and Technology
1 answer:
Andru [333]3 years ago
5 0

Answer:

double * maximum( double arr[], int size){

   int max = 0;

   if ( size == 0){

       return 0;

   } else {

        for (int i = 1; i < size; i++){

           if (arr[i] > arr[0]){

               max = arr[i];

           } else {

               max = arr[0];

           }

         }

         return max;

   }

}

Explanation:

The C++ source code above returns the maximum value of an array as a pointer. The function accepts two parameters, the array in question and the size of the array. The for loop iterates over the items in the array and checks for the largest, which is returned as a pointer since the function "maximum" is defined as a pointer to the floating-point number memory location.

You might be interested in
40 POINTS I NEED THESE ANSWERS ASAP GIVE ME THE RIGHT ASNWER AND ILL PUT YOU AS THE BRAINLIEST
Law Incorporation [45]
Having a filling system and keeping a clean desk is good time management tips (True)

Your wrists should be low,relaxed and resting on the frame of the keyboard while typing (False)

A correctly formatted memo will have a complimentary closing? (False)

Which professional business memo part is keyed first?
D.) TO

to type a capital letter "T" the typist will hold the right shift key with the right little finger, and then strike "t" with the left pointer (first) finger. (True)

in a standard block style letter, key the date to print ___ from the top edge of the page
D.) Double space (DS)

A search engine can help link you to information on how to format a buisness letter. (True)
7 0
3 years ago
What is the importance of data validation, and how can user data entry errors be reduced or eliminated?
lisabon 2012 [21]

Incorrect data can lead to unexpected program execution results. Data entry errors can be reduced by only accepting valid input, e.g., if a number must be entered, alphabetic characters are ignored. After data validation, error messages can be prompted to the user, requiring him to enter the data again.

5 0
3 years ago
A relational database is different from a simple database because it has more than one _____. record ID number table field
Ulleksa [173]

Answer:Table

Explanation:A relational database has structures and thus have more than one table. The tables consist of row (for entry) and column (for data). As a result, data are organized in a simple manner and are normally consistent.

6 0
3 years ago
P*********** is considered a serious social problem justify this statement​
vredina [299]

Answer:

I think it's not a social problem but they are doing that by their own choice . but if the girls are forced to do that is the social problem

7 0
2 years ago
Read 2 more answers
Is this good connection to be able to record edit and post videos?
Sholpan [36]

Answer:

The answer to your query is Yes and the details are in explanation section.

Explanation:

The general rule video is

  • if you have 3 MB speed is enough for normal video.
  • 5 MB for HD
  • 25 MB for HDR or 4K

For the above it is clear that yes your connection is good enough for videos.

but it lack in HDR or 4K  videos.

4 0
2 years ago
Other questions:
  • What if you have been asked to opt or design expert system or virtual reality using artificial intelligence for your daily/routi
    9·1 answer
  • What role do you think mobile devices have played in shaping the world?
    13·1 answer
  • ANSWER QUICKLY!
    10·1 answer
  • What is the program that searches through data bases?
    10·1 answer
  • Select the correct answer Steven has been assigned a task to lead a team to analyze volumes of financial data Steven observes th
    8·1 answer
  • The set of rules for how computers talk to one another
    6·1 answer
  • What is the importance of human flourishing to science and technology?​
    8·1 answer
  • Mrs. Zoo gave out the rubric for our essay. She stated that our essay should be complete by Friday of that week. I didn't have t
    13·1 answer
  • How can I call moderator in braily app ???
    5·1 answer
  • How should you respond to the theft of your identity cyber awareness.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!