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

in. What is the perimeter of this tile? in2 10 in. 8 in. 6 in. and in exponent 2 or just inch
A student in your third grade classroom has selected a text to read independently. Her reading fluency with this text is 72 correct words per minute. What is th
The proper protective equipment for working with hazardous chemicals in the lab includes, gloves, lab coat, goggles, and a fume hood.
Write the equation of the line in fully simplified slope-intercept form.
I need help on these problems ASAP!!
Which skill is part of financial literacy?
Help me urgent please
Question 13 1 An abductively simple theory is one that is: ate O A result of applying Ockham's Razor O The most parsimonious O (a) and (b) above O Easy to under
paint store sells 4 pt of paint for $19.
Is it possible for someone to show a weak (recessive) trait if they have one strong (dominate) gene?