I've made a struct with two different variable names, and I want to connect those two different struct with eachother, so I've done a code that's logically applying what I have wanted, here it's:
All things are fine, just line 9 which I'm still confused about it, why I must write in line 9 the syntaxCode:#include<stdio.h> #include<string.h> struct Line2D{ Line2D *next; }; int main() { struct Line2D line01,line02; line01.next=&line02; }and not this syntaxCode:line01.nextlike what's written in the struct itself..., does the operator "*" in this statement :Code:line01.*nextjust acting like telling me that there's an address called next which its type Line2D? and it's(the *) not having any else purposes?Code:Line2D *next