What is use of class node

can i get the full explanation of below piece of code

node *temp=new node(data);

what happen when the code executes

  1. node *temp means just delcaring a variable temp of type “node *” like we define int n.
  2. Then new node(data) is used for creating an object of this node class with where data is initialized using the constructor

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.