Question: Write C++ main a function that contains the following: 1. Create an array L of 12 characters. (declare it as dynamic array (i.e., using

Write C++ main a function that contains the following: 1. Create an array L of 12 characters. (declare it as  

Write C++ main a function that contains the following: 1. Create an array L of 12 characters. (declare it as dynamic array (i.e., using a pointer)) 2. Declare three pointers to characters P1, P2, and P3. 3. Set P1 points to the array L 4. Read 12 characters and fill the array L (Do this operation using pointer P1) 5. Set P2 points to the element L[8]. 6. Create P3 and set the character value ('$') in it. Check the value pointed by P2 and the value pointed by P3. Then display on the screen "Match' if it is equal, "Not Match" if it is not equal.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Lets walk through the steps to create a C function to meet the requirements presented in y... View full answer

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 Programming Questions!