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

What does antagonist mean
Highlighter pens cost $3.86 per set at an office supply store. Which equation can be used to determine the price, P, of n sets of these pens? n = 3.86P P equ
Respond with an indirect object pronoun: Est-ce que tu parles à Marie-Jeanne Oui, je la parle. Oui, je la parles. Oui, je lui parle. Oui, je lui parles. Re
Inequalities, Permutations, and Probability pt2 (algebra2)
In a nonfiction essay on property law, which choice of details would the author most likely use?
Can someone please help
Which occupying country sought to strip Germany of its industry after ww||
How can a sample of uranium-235 that has critical mass be induced to react? it must be spilt with a laser. it must be fused to a helium nucleus. it must be bomb
All federal law dealing with campaign finance is administered by the
What is the function of mucus in the stomach?