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

least to greatest 0.678 1.678 0.587 0.687
How long would it take the Earth to complete 4 orbits around the Sun?
who were the german social democrats and what is the significance of november 11, 1918, in relation to the group ?
describe at least one reason for limiting each of the following in a well balanced diet saturated fat, cholesterol and sodium
In what way did economic factors influence political developments in the annexation of hawaii? Native Hawaiians, who depended on American sugar planters for job
Tabitha is raising rabbits to sell during the spring she has 16 rabbits and feeds them each one half cup of carrots every morning the bag of carrots She bought
Pat helps run an animal shelter. The actual number of animals brought in during a particular month was 150. The percent error was 12%. If Pat estimated on the h
(-72)/(-6) Awnser Plz&Thx
In which sentence is the underlined word the proper adjective formed from Canada? A. The star of this movie is a Canada actor. B. The star of this movie i
Explain how the American Revolution affected some American views of the enslavement of African Americans.