'How does the c compiler execute when we include a pointer declaration to a structure which we haven't finished defining yet?

struct noderecord {
    struct noderecord* next;
    int data;
}; 

how is the pointer next declared without some error? we have added one more element subsequently after declaring a pointer, wouldn't the pointer element be of the wrong size?

c


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source