/////BASE ADDRESS OF LINKLIST SHOULD NEVER BE LOST IF UB WANT TO ACCESS THE LINKLIST.....
//TO RECOGNISE LINKLIST I HAVE TWO TRICKS:-
////1)IF start or any pointer->next is on left side means ,,,we are putting to memory at that pointer into another pointer |
//|or memory by replacing other memory...
////2)IF WE ARE PUTTING NORMAL NAME LIKE temp into another pointer or memory...means we are putting memory to another pointe
//r or relacing memory of another normal type name ..//
////POINTS TO REMEMBER:---
////ALWAYS REMEMBER...2 POINTERS CAN POINT SAME MEMORY BUT TWO MEMORIES COULD NOT BE HOLD BY SAME POINTER
#include<stdio.h>
#include<stdlib.h>
struct node
{
int info;//info is normal int type variable ...so can not be a cause of linklist...bcz..this is a simple element
struct node *next;//wow///this is not a simple variable // this is pointer like variable of structure...inside the structure//variable is structure inside the structure pointing to itself when act as element
//this element of structure is also acting like a variable of structure...
};
int flag,node_no;//globally declared
struct node* create_linklist();//all the functions are always globally declared...in header file ...