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

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

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!