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

Select the four tactics that cyber criminals use for stealing information from the list below. baiting click-jacking Ospamming defamation cross-site scripting O
seeks political power by electing people to office so that its positions and philosophy become public policy.
In macroeconomics, _____________________ denotes the relationship between the total quantity of goods and services and the price level for output. macroeconomi
PLSSS HELPPP Im so confused with the majority of this question. With the fact that many athletes may have cardiovascular issues that go undetected, do you think
In the 1850’s the term “Bleeding Kansas” referred to
What happens at the end of translation?
structure and bonding t​
Help please! What’s the answer for graphing the piece wise function to get the right answer?
1. How many variables are involved in the chi-square test? 2. Which type of chi-square test is this? A.goodness of fit B.test of independence 3. How many deg
A solution is made by dissolving 3.14 g of NaCl in 79.9 mL of water. What is the concentration of sodium chloride in units of weight/volume percent? Group of an