about pointer structure

Hello all
i am kinda confused about some segments of code that involve structures
what does it mean if a programmer writes the following
struct linked
{
int x ;
int y ;
string na ;
linked * some ; /*What does that specific line of code mean ?

}
also
struct linked
{
int x ;
int y ;
string na ;
linked some ; /*What does that specific line of code mean ?

}
please explain the difference between
I would watch the first 3 videos of this series.
https://www.youtube.com/watch?v=Ps8jOj7diA0
linked *some; References another struct of type linked.

linked some; Is another object of type linked as one attribute of struct linked. This line would never compile, because 'linked' isn't completely defined at this time. And it cannot be defined because it would result in an endless recursive defined type:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
struct linked
{
    int x;
    int y; 
    string na;
    struct linked
    {
        int x;
        int y; 
        string na;
        struct linked
        {
            int x;
            int y; 
            string na;
            // ....
        } some;
    } some;
}
Topic archived. No new replies allowed.