414 views
1 votes
1 votes
struct node { 
    int data1; 
    char data2; 
    struct node* link; 
};                              //self referential structure
  ***************************************
  struct node { 
    int data1; 
    char data2; 
     
} m;
int main ()
{
    struct node * ptr;
    return 0;
}
  

 

are both pointer ptr & link will do same work every where?

All I need to ask is difference between self referential structure and Pointer to Structure ?

 

1 Answer

0 votes
0 votes
both pointer $ptr$ and $link$ will work as same

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
2
Chaitanya vommi asked Nov 5, 2017
231 views