so basically as discussed in the video we are using a node class
class node{
public:
int data;
node *next;
};
but it would be better if we use a structure instead because as it we are not going to define any member functions inside the class .
can you just send in an example which uses structure
Use of structure instead of class
hello @Bhavya_Goel
just replace keyword class with struct .
and rest of the code will remain exactly same
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.