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

A high fever causes an enzyme to lose its three dimensional structure and function. Which bonds are broken when a protein denatures? A high fever causes an enzy
Which worker is paid less than the minimum hourly wage
2/3+1/6= I need Help understanding fractions example. need a break down.​
Your coin collection contains 60 1952 silver dollars. If your grandparents purchased them for their face value when they were new, how much will your collection
Two pea plants heterozygous for the characters of pod color and pod shape are crossed. Draw a Punnett square to determine the phenotypic ratios of the offspring
Jorge said that 0.029 can be written as 29/100. Is he correct ??
how do you find a frequency of a class when the relative frequency is given
The United States is about the only country that still uses the units feet, miles, and gallons. However, you might see some car specifications that give fuel ef
Over a span of 8.0 seconds, an object moves 16 m to the left relative to where it began. If we treat left as the direction towards increasingly negative displac
Relate Locard's Principle of Exchange to trace fiber evidence.