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

What is the length of FB? 3 units 4 units 5 units 7 units
Each unit requires 0.75 hours of direct labor at a cost of $6.50 per hour. What is the cost of direct labor for May?
s% of 1/r PLEASE HELP!
What is the effect of k on f(x)=g(5x) where g(x) is a piecewise function? Explain.
Can someone help with this please
what is the source of energy​
These states do not have stand your ground laws a) Connecticut b) Oregon c) New York d) Arkansas e) California
How many quizzes are given in American US History I?
A bag of M&Ms costs 75 cents. A bag of Skittles costs 2/3 as much as a bag of M&Ms. How many cents does Mary need if she wants to buy one bag of Skittle
Some psychologists believe that trait theories of personality give too little attention to __________ and put too much emphasis on __________.