Question: What is a pointer variable in C++? Show how a pointer variable can be declared and how they can be initialised. Use a diagram to

What is a pointer variable in C++? Show how a pointer variable can be declared and how they can be initialised. Use a diagram to represent what is happening in computer memory of support your answer 3 (a) (10 marks) Provide an outline for the algorithm to delete a node from a singly linked list. Use a diagram to support your answer. (b) (12 marks) Write a C++ function that could be used to compare two linked lists. Assume the nodes of each list consist of a single int and a pointer. The function should transverse both lists and compare the int values contained in each node. If the values are the same for each pair of nodes compared the function should return true. (c) (8 marks)
Step by Step Solution
There are 3 Steps involved in it
Ive opened the image you provided Let me now assist you with the questions based on it 3a What is a pointer variable in C Show how a pointer variable can be declared and how they can be initialized Us... View full answer
Get step-by-step solutions from verified subject matter experts
