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

Mark the letter A, B, C, or D on your answer sheet to indicate the difference in stress. 6. (2 Points) A. compose B. famous C. surround D. complete
buoyancy increases with the increase in the density of a) Submerged body b) Fluid​
Find the perimeter of the given rectangle: 5x - 9 by 7
Directions: Simplify the following monomials (if possible).12.) 12b + 8a - 10b13.) 13y² + 9y + 4y² - 31y14.) 10m²n + 7mn² - m²n15.) Find the sum of 16y² and -5y
Can someone answer this please,this TLE grade 6​
The relationship between England and the 13 American colonies can be described as
What is 35 1/6 as a decimal
Answer please:))))))))
Answer the following questions. (a) What percent of 51 is 127.5? % (b) 7.02 is 10.4% of what
Sep 11, 6:11:06 PM During a snowstorm, Vani tracked the amount of snow on the ground. When the storm began, there were 2 inches of snow on the ground. Snow fell