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

To get a free meal at his favorite restaurant, Tom needs to spend $50 or more at the restaurant. He has already spent $30.25. How much more does Tom needs to sp
Which sentence uses all its subject pronouns correctly? a. She and I went skating at the park. b. James and me are going to ride our bikes. c. Us and Bill have
Which of the following does not accurately describe fruits? A. Fruits develop from ovary walls. B. Fruits attract animals, which helps disperse seeds. C. Fruits
how do I find the estimate of the quotient for 3482÷9?
What are the main parts of a brain and what do they do?
if 80 is 80% of the value what is the value?
0.0625 as a fraction in simplest form
what is 22, 10, 16 oz add together equal to a pound
Help 2,4+0,8=.......-0,06=........+1,21=.......+1,78=....-5,14=.
As the Native Americans were worked to death and died of disease, what group of people were brought in to replace them as laborers? A) French prisoners B) Afric