chirilasrares5580 chirilasrares5580
  • 12-08-2019
  • Computers and Technology
contestada

The variable cp_arr has been declared as an array of 26 pointers to char. Allocate 26 character values, initialized to the letters 'A' through 'Z' and assign their pointers to the elements of cp_arr (in that order).

Respuesta :

flightbath flightbath
  • 16-08-2019

Answer:

void main(){

char*[] cp_arr= new char*[20];

char ch;

int i=0;

for(ch='A';ch<='Z';ch++){

*cp_arr[i]=ch;

i++;

}

}

Explanation:

we are taking a char array of pointers and iterating a loop to store A to Z values in that array in the mentioned order

Answer Link

Otras preguntas

Write a modern question that means the same as: What would'st thou? Who hath dared to wound thee?
A rectangles length is 7 inches greater than its width. If the perimeter of the rectangle is 110 inches, find its length and width. I think it's w (w+7)=110
The legs of an isosceles right triangle are 5 inches long. What is the length of the hypotenuse of the triangle to the nearest inch?
A hotel has 56 guests. 35 of the guests are male. Work out 35 out of 56 as a percentage.
the first armed conflicts of the revolutionary war
Find the inverse of f (x)=log(subscript 4) x
Stuck! Help Please! What was the ultimate cause for the conflict and later charges that were brought against Leschi? A. Leschi was appointed Chief of the Nisqua
in times what equals 28,21,60,48,24,45
Suppose Lynn rolls a fair die until a 6 appears on top. What is the probability that it rolls to get a six the first time?
If the Campbell Candy company can produce Sarah's special candy bars at 100 for $165 and 600 for $195 write the cost function for the production process?