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
masya89 [10]
3 years ago
15

Write a program that uses a function called Output_Array_Info. Output_Array_Info Properties: Input Parameters: 1. A pointer to a

n integer called array_ptr. This will be used to point to an array of integers. 2. An integer that stores the size of the array.
Engineering
1 answer:
Artyom0805 [142]3 years ago
8 0

Answer:

C++ code explained below

Explanation:

Please note the below program has been tested on ubuntu 16.04 system and compiled using g++ compiler. This code will also work on other IDE's

-----------------------------------------------------------------------------------------------------------------------------------

Program:

-----------------------------------------------------------------------------------------------------------------------------------

//header files

#include<iostream>

//namespace

using namespace std;

//function defintion

void Output_Array_Info(int *array_ptr, int size)

{

//display all array elements

cout<<"Array elements are: "<<endl;

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

{

cout<<*(array_ptr+i)<<endl;

}

//display address of each element

cout<<endl<<"memory address of each array elemnt is: "<<endl;

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

{

cout<<array_ptr+i<<endl;

}

}

//start of main function

int main()

{

//pointer variables

int *pointer;

//an array

int numbers[] = { 5, 7, 9, 10, 12};

//pointer pointing to array

pointer = numbers;

//calculate the size of the array

int size = sizeof(numbers)/sizeof(int);

//call to function

Output_Array_Info(numbers, size);

return 0;

}

//end of the main program

You might be interested in
When designing a new product, which type of drawing is usually made FIRST?
Rainbow [258]

Answer:

Sketch Solution.

Explanation:

8 0
3 years ago
What is pre-flush and post flush in petroleum engineering?
cluponka [151]

Answer:

Pre-Flush:

It is also known as In-line Equalization. In this stage of flow equalization, all the flow passes through the equalization basin. It helps in reduction of fluctuation in pollutants concentration and flow rate and helps to control short term surges with the use of basin.

Post-Flush:

Another name for this stage is Off-line Equalization. In this stage, only overflow above a predetermined standard is diverted into the basin. It helps in reducing the fluctuations in loading by a considerable amount and helps to reduce the pumping requirement. It is basically used to capture "first flush" from combined collection systems.

5 0
3 years ago
Automobiles must be able to sustain a frontal impact. Specifically, the design must allow low speed impacts with little damage,
Naya [18.7K]

Answer:

Explanation:

The concept of Hooke's law was applied as it relates to deformation.

The detailed steps and appropriate substitution is as shown in the attached file.

8 0
3 years ago
What kind of robot should i make
schepotkina [342]

Answer:

It really depends on what you want it to do. I would make one that does chores around the house so I don't have to.

Explanation:

4 0
2 years ago
If you detect that something’s wrong while lowering a lift, you should try to get the vehicle down as fast as possible
Rashid [163]
False, it depends on the situation. If the lift is tilting or anything like I would then get down. Certain training will say to get out and see if you can keep lowering,
4 0
3 years ago
Other questions:
  • The current source in the circuit below is given by i S (t) = 18 sin(35t +165) A. A. [6 points] Apply the phasor-domain analysis
    8·1 answer
  • A Norton ac equivalent circuit always consists of
    6·1 answer
  • Electronic components are often mounted with good heat conduction paths to a finned aluminum base plate, which is exposed to a s
    14·1 answer
  • I need help plz <br><br> Drag each label to the correct location on the image.
    11·1 answer
  • What is the most common type of suspensions system used on body over frame vehicles?
    15·1 answer
  • How does science and technology address the problems of the society?
    6·2 answers
  • Some easy points points you ​
    7·2 answers
  • What Forces are involved with roller coasters?
    12·2 answers
  • Identify the type of social responsibility discussed in the case with regard to
    7·1 answer
  • joe is an exceptional systems engineer who hopes to work at the techtonic group. he is handicapped and uses a wheelchair. techto
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!