kristalynhayes2490 kristalynhayes2490
  • 14-09-2019
  • Computers and Technology
contestada

Dеclarе and allocatе mеmory (on thе hеap) for a onе-dimеnsional array of 256 doublеs namеd pricеs

Respuesta :

ExieFansler ExieFansler
  • 20-09-2019

Answer:

double *prices=new double [256];

Explanation:

To allocate memory on heap we use new keyword.In the above statement an array name prices is declared and the memory allocated to it is on the heap memory.

First look at double * prices.It is a pointer this pointer is created on the stack memory which holds starting address of the array present on the heap memory of size 256..

Answer Link

Otras preguntas

The United States was clearly fighting against Spain for possession of Cuba. a. True b. False
PLEASE HELP DUE NOW!! What causes the conflict that the young man must face in "The Lady or the Tiger?" A. the woman behind the door B. the man himself
Sedimentary rock _____. a.forms below the crust b.is made from cooling magma c.usually forms horizontal layers d.does not contain fossils
Write the phrase as an algebraic expression. “a number less 15”.
What were the two largest and best-known Harappan cities
Which steps can be used to solve for the value of y 2/3(y+57)=178
18% of what number is 43?
. What may happen if a large number of computer users are attempting to access a Web site at the same time that you are? A. You may be automatically routed to a
Can any body helps me please
The fermentation of C6H12O6 will produce CO2 and 1. C3H5(OH)3 2. C2H5OH 3. Ca(OH)2 4. Cr(OH)3