Question: Declare a char array called alpha, and initialize it to the string ABCDEFGHIJKLMNOPQRSTUVWXYZ. In your declaration, make the alphabet array read - only, so none

 Declare a char array called alpha, and initialize it to the

Declare a char array called alpha, and initialize it to the string "ABCDEFGHIJKLMNOPQRSTUVWXYZ". In your declaration, make the alphabet array read - only, so none of the letters in the array can be changed later in the program. Given a char pointer called ptr (i.e. char * ptr) and the alpha array declared in problem (1) above, make ptr point to the letter 'D' in the alpha array (i.e. set ptr to the memory address where 'D' is stored). What's wrong with the code below? (Circle the line with the error, and describe the error) int * int_ptr; int primes [] = {2, 3, 5, 7}; int composite [] = {4, 6, 8, 9}; int_ptr = primes; composite = int_ptr; Pointers enable passing variables to functions by: A. Pass by value B. Pass by reference C. Pass by number D. Pass by operator What is printed to the screen by the code below? int number [] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}; for (int i = 1; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!