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

If you are going to the concert, you should buy tickets in advance. (Points : 2) advance tickets should be bought tickets should be bought in advance tickets
16/2*4 solve for answer
The geometry about nitrogen when it makes bonds to three other atoms is ________
How did fighting a two front war hurt the Germans ability to win the war?
How is power related to energy
This question is based on the following poem.    Laugh and be merry, remember, better the world with a song,    Better the world with a blow in the teeth of a
When was the first textbook of psychology written and what was it?
Quartz is quite resistant to weathering and is an important component of sands in riverbeds and on beaches. true or false
Ecris une conversation entre le médecin et toi au sujet de santé. Dans la conversation tu peux parler des maladies, des problèmes, des solutions, des hôpitaux,
solve b=3/4a a+b=21 please need help