I want to know please where i have to use the "free" function?
does I use it when i already use the "malloc" function or I use it with any declared pointer?
Note: in the two cases the liste
type is defined as below:
typedef struct Node * liste;
Node
is a also a structure:
struct Node {
int value;
Node *N;
};
First case
liste l;
free (l);
second case
liste l;
l=(node*)malloc(sizeof(node));
free (l);
thank you in advance !