Question: Pointers Question 4 (a) Provide a single line of C++ code that will declare a variable that is a pointer to a char value. The

Pointers Question 4 (a) Provide a single line of C++ code that will declare a variable that is a pointer to a char value. The variable is named y. [2 marks] (b) Assume a variable named initial is declared with: char initial = ,C' ; . Set the variabley, to point to initial. [2 marks] (c) You are given the following code: void addone (int n) f int main (O int n-22; addOne (n); cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
