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

which one of the options are true?
which two lines are parallel? 1) 4y=3x-4 2)4y=-1-3x 3) 4y+3x=-1
What is the purpose of the SMCRA and what requirements does it dictate?
What led to self determination in colonies
Find sum or difference.15/16 - 3/4A. 1B. 3/4C. 3/16D. 9/16
How many real solutions does the system have Y=-3x-3 Y=x^2-3x+5
you have a 4x6 photo of you and your friend. You order a 5x7 print of the photo. Is the new photo similar to the original?
where would u expect a warmer environment, Mexico or Canada why?
The driver of a car traveling at 54ft/sec suddenly applies the brakes. The position of the car is s=54t-3t^2, t seconds afyer the driver applies the brakes. Ho
Someone please help me fast