hi everyone,
I need some examples of using
"pointer of struct inside another struct"
Thank you kindly
Printable View
hi everyone,
I need some examples of using
"pointer of struct inside another struct"
Thank you kindly
Code:struct node {
char data[128];
struct node *ptr;
};
A small note. If in case you need to typedef that struct, you do something like:
Code:typedef struct node nodeTag {
char data[128];
struct nodeTag *ptr;
} node;
//example
node myNode;