Getting error the code for insertion at end


this is the code id

@Bhavya_Goel run your for loop at line 26 till temp->next!=NULL.