sir output is coming 0,0,0
p tell the mistake in the code
Insertion at head in linked list
@ayush15goel Hey Ayush Goel, you did a small Mistake.
Hint : you declared one variable twice(local Variable).
@ayush15goel Hey Ayush, I hope I’ve cleared your doubt. Please mark this doubt as resolved and rate me on the basis of your experience. Rating option is just below where you mark this doubt as resolve. Your feedback is very important. It helps us to 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.
can you pl tell which variable,I am not able to detect
@ayush15goel another Hint : Mistake is in below code : 
class node{
public:
int data;
node*next;
node(int d){
int data=d;
next=NULL;
}
};
got the mistake, thank you
Please mark this doubt as resolved