 <p>The above code will only run once only which will add information to head only once. If you want to add more information in case of second run then add code for else condition. Example:-</p> <pre><code>if ( head == NULL ) { // code to insert data in case of first run }else{ // code to insert data for second run and so..... } </code></pre>