title: assign an address to the Node* in link list?
body: <pre><code>   this is the structure of my node
      typedef struct Node{
      int x;
      Node* Next;
    };
  
    // in main() i can make the head pointer,and assign it to NULL i-e 
  
       Node* start_pointer=NULL;  //this line is in my main() function
                              // and i consider it head pointer
  
  
     void add_node(Node* start_pointer){
  
  Node first;
  cout&lt;&lt;"Enter the value of X\n ";
  cin&gt;&gt;first.x;
  if (start_pointer==NULL){
      start_pointer=&amp;first;   //try to assign an address of object of its pointer
      first.Next=NULL;
      }
  
  
  else {                             
  
      Node* temp=start_pointer;
      while (temp-&gt;Next != NULL){         //program is break at this stage  
          temp=temp-&gt;Next;}
  
      temp-&gt;Next=first.Next;                
      first.Next=NULL;
  
  }
  </code></pre>
  
  <p>I am assigning an address to the node* and try to catch it with '->' operator  it is ok ?
  every time when i run add_node function it execute but unfortunately it do not go into else condition  </p>