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
How much metal can be removed from a cracked drum to restore surface
Alisiya [41]

Answer:sc

Explanation:

sc

7 0
2 years ago
Read 2 more answers
Define Viscosity. What are the main differences between viscous and inviscid flows?
Evgesh-ka [11]

1. Define <em>Viscosity</em>

In physics, <em>Viscosity</em> refers to the level of resistance of a fluid to flow due to internal friction, in other words, viscosity is the result of the magnitude of internal friction in a fluid, as measured by the force per unit area resisting uniform flow. For example, the honey is a fluid with high viscosity while the water has low viscosity.

What are the main differences between viscous and inviscid flows?

Viscous flows are flows that has a thick, sticky consistency between solid and liquid, contain and conduct heat, does not have a rest frame mass density and whose motion at a fixed point always remains constant. Inviscid flows, on the other hand, are flows characterized for having zero viscosity (it does not have a thick, sticky consistency), for not containing or conducting heat, for the lack of steady flow and for having a rest frame mass density

Furthermore, viscous flows are much more common than inviscid flows, while this latter is often considered an idealized model since helium is the only fluid that can become inviscid.

5 0
2 years ago
un contenedor de 0.01m∧3 se llena con 2kg de nitrogeno a una presion de 15mpa ¿cual es la temperatura del nitrogeno?resolver uti
777dan777 [17]
Ecfñnokg pinogdf gabn Etta r
7 0
3 years ago
When were dresses made
klio [65]

Answer:

The world's oldest dress called the Tarkhan Dress is at 5,100 to 5,500 years of age.

Does that help? Or do you need something else? I can change my answer if this is not what you need! :D

Explanation:

6 0
3 years ago
vertical gate in an irrigation canal holds back 12.2 m of water. Find the average force on the gate if its width is 3.60 m. Repo
DanielleElmas [232]

Answer:

The right solution is "2625 kN".

Explanation:

According to the question,

The average pressure will be:

= density\times g\times \frac{h}{2}

By putting values, we get

= 1000\times 9.8\times \frac{12.2}{2}

= 1000\times 9.8\times 6.1

= 59780

hence,

The average force will be:

= Pressure\times Area

= 59780\times 3.6\times 12.2

= 2625537 \ N

Or,

= 2625 \ kN

5 0
2 years ago
Other questions:
  • Help me! Phone Phoebe on 07375410044.
    7·2 answers
  • A socket can be driven using any of the following except for (A) a socket ratchet
    14·1 answer
  • Which of the following is an example of seeking accreditation?
    7·1 answer
  • 1. Represent each of the following combinations of units in the correct SI form using the appropriate prefix: (a) μMN, (b) N/μm,
    6·1 answer
  • The attached program (studentsGpa.cpp) uses dynamic allocation to create an array of strings. It asks the user to enter a number
    10·1 answer
  • "12 cents per kilowatt-hour (kwh), a 114 MPGe (combined) Nissan Leaf costs 90 cents per 25 miles,"
    10·1 answer
  • A continuously variable transmission:
    13·1 answer
  • All these are returnless fuel systems EXCEPT ?
    8·1 answer
  • From the top of a vertical cliff 80m high, the angles of depression of 2 buoys lying due west of the cliff are 23° and 15° respe
    13·1 answer
  • If a bearing needs 4. 0 s to solidify enough for impact, how high must the tower be?.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!