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 statement describes instances of harassment rather than bullying? O Kaylee is teased because she is the smallest person in her class. O Alys is often excl
A recipe that makes a dozen cookies calls for 1 1/2 cups of milk, 2.25 cups of flour, and 1 1/4 cups of other ingredients. How many cups of other ingredients, m
Show that it is not possible to choose a uniform random number from the whole real line.(In other words, we cannot dene a probability on the real numbers that c
Which statements describe the geographic theme of location
Peter plays on the varsity basketball team. So far this season he has scored a total of 52 points. He scores an average of 13 points per game. How many more gam
Calculate the average rate of change in corn yield from 1964 to 2008 (Round to the nearest whole number.)
Which is a basic characteristic of all living cells? cell wall protein coat energy metabolism antibiotic resistance
-4.5 x (-2)???????????????????????
Name the plane represented by the front of the box. B JE F K ODBF GBF ОСАВ BJC
Expand and simplify the expression(p-4q) (3p+q) - (2p+3q) (4p-7q)​