P
prakashgkhaire
i have two structure where first structure consists val and structure
pointer(linklist), 2nd structure consists, val, a varialbe of first
structure, pointer of structure.
Now i found to pass the variable of 2nd structure to function as
variable of 1st structure
struct first
{
int val;
struct first *next;
};
struct second
{
int name;
struct first one;
struct second *next;
}temp2;
Now i found to pass actually first structure,
i.e let myfunc(temp) // void myfunc(struct first)
but can i do myfuc(temp2->one)
pointer(linklist), 2nd structure consists, val, a varialbe of first
structure, pointer of structure.
Now i found to pass the variable of 2nd structure to function as
variable of 1st structure
struct first
{
int val;
struct first *next;
};
struct second
{
int name;
struct first one;
struct second *next;
}temp2;
Now i found to pass actually first structure,
i.e let myfunc(temp) // void myfunc(struct first)
but can i do myfuc(temp2->one)