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
Neporo4naja [7]
3 years ago
5

I really need this answer please

Computers and Technology
1 answer:
likoan [24]3 years ago
5 0

Answer:

Passing by memory address

Explanation:

When you pass a memory reference like &a the data stored at this location can be directly accessed by the function through a dereference like *a = 2;

You might be interested in
Write a program that records high-score data for a fictitious game. the program will ask the user to enter five names, and five
Harman [31]

Scores.cpp

#include <iostream>

#include <string>

using namespace std;

void initializeArrays(string names[], int scores[], int size);

void sortData(string names[], int scores[], int size);

void displayData(const string names[], const int scores[], int size);

int main()

{

   string names[5];

   int scores[5];

   //reading names and scores

   initializeArrays(names, scores, 5);

   //sorting the lists based on score.

   sortData(names, scores, 5);

   //displaying the contents of both arrays

   displayData(names, scores, 5);

 

  return 0;

}

void initializeArrays(string names[], int scores[], int size){

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

       cout<<"Enter the name for score #"<<(i+1)<<": ";

       cin >> names[i];

       cout<<"Enter the score for score #"<<(i+1)<<": ";

       cin >> scores[i];

       }

}

void sortData(string names[], int scores[], int size){

   

       int temp = 0;

       string tempStr = "";

       

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

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

                      //checking max score and sorting based on it.

                       if(scores[j-1]< scores[j]){

                               //swap the elements!

                           //swapping scores

                               temp = scores[j-1];

                               scores[j-1] = scores[j];

                               scores[j]=temp;

                               

                               //swapping names

                               tempStr = names[j-1];

                               names[j-1] = names[j];

                               names[j]=tempStr;

                       }

                       

               }

       }

}

void displayData(const string names[], const int scores[], int size){

   cout<<"Top Scorers:"<<endl;

       //printing the elements up to the size of both arrays.

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

           cout<<names[i]<<": "<<scores[i]<<endl;

       }

}

3 0
4 years ago
Test prints can help you determine the exposure time for a print as well as help you identify any issues in the negative. True F
Dahasolnce [82]
I'd say TRUE

It is always important to have a correct exposure in rendering a highlight tone on a print. To find the correct highlight exposure, make test strips using pieces of paper separately to the area of the negative containing the most the most critical highlight. Once you have enough test strips, you should pick the one that contains the best highlight rendering. Exposure time of that test strip is the correct exposure.



5 0
3 years ago
Read 2 more answers
1-Which organization produces<br> the NEC?
hammer [34]

Answer.

The National Electrical Code (NEC), or NFPA 70, is a regionally adoptable standard for the safe installation of electrical wiring and equipment in the United States. It is part of the National Fire Code series published by the National Fire Protection Association (NFPA), a private trade association.

Explanation:

4 0
3 years ago
Which of the following is NOT true about the ways that various professions use computers? Police use them to track criminals. Pi
ira [324]
Pilots use them to learn at first, but rarely afterwards<span> is NOT true about the ways that various professions use computers</span>
8 0
3 years ago
Which branch structure does a program use to output "Yes" if a variable's value is positive, or "No" otherwise?
Digiron [165]

Answer:

Selection control structure

Explanation:

This is often referred to as if-conditional statement;

This condition tests for a condition and performs a sequence of operation depending on the result of the condition;

Take for instance, the following program written in python

<em>x = int(input("enter any number: "))</em>

<em>if x < 0:</em>

<em>   print("Yes")</em>

<em>else</em>

<em>   print("No")</em>

<em />

The above checks if the input number is less than 0,

If the condition is true, it prints Yes

If otherwise, it prints No

6 0
3 years ago
Other questions:
  • Software that people commonly use in the workplace to make their lives easier is called?
    6·1 answer
  • "if you add text, delete text, or modify text on a page, word recalculates the location of automatic page breaks and adjusts the
    15·2 answers
  • A classmate is texting a false rumor around school that another student was arrested for shoplifting. This behavior can be descr
    9·2 answers
  • Which of the following statements is false ^^^^^Please Help^^^^^^
    10·1 answer
  • How and why do engineers use models?
    15·1 answer
  • Motivational appeals refer to
    15·1 answer
  • Which is better computer science or software engineering?
    10·2 answers
  • You have a large text file of people. Each person is represented by one line in the text file. The line starts with their ID num
    5·1 answer
  • Office ____ is the current version of Microsoft Office for Mac operating systems.
    12·1 answer
  • Uploading Your Work
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!