Question: Given the following poorly written code sequence: headPtr = new Node ( ) ; headPtr = NULL; What is the result? a . headPtr points
Given the following poorly written code sequence:
headPtr new Node ;
headPtr NULL;
What is the result?
a
headPtrpoints to the new node
b
You access the new node by use of headPtr
c
The program crashes
d
The new node is inaccessible
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
