struct Emp
{
char name[40];
int age;
float salary;
struct Emp*e; /* is illegal */
};
Such structures are known as self-referential structures.
Structures and Functions
Just as we can pass basic data types, it is also possible
to pass structure variables to functions and
receive structure data types from functions.
Two techniques are used: structures as function
arguments and returning structures from functions.
Do'stlaringiz bilan baham: