Question: Consider this function prototype: bool delFirst ( Node ( : T : ) * * & head ) . What is the correct implementation? a
Consider this function prototype: bool delFirstNode ::& head What is the correct implementation?
a
if head
return ;
Node :: temphead;
delete temp;
headheadnext;
return ;
b
if head
return ;
Node :: temphead;
headheadnext;
delete temp;
return ;
c
if head
return ;
headhead next ;
Node : temphead;
delete temp;
return ;
d
if head
return ;
Node :: temphead;
headheadnext;
delete temp;
return ;
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
