Question: Writing a program with pointers, Write the following program; C++ //1. declare pointer P for a character cell. //2. declare pointer Q for a character
Writing a program with pointers, Write the following program; C++
//1. declare pointer P for a character cell.
//2. declare pointer Q for a character cell.
//3. make P point to a new cell.
//4. put A in the cell.
//5. make Q point to a new cell.
//6. put B in the cell.
//7. swap the contents of the two cells
//8. display the P cell and the Q cell.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
