Example with malloc
#include <stlib.h>
Pair * p; /* p is a pointer to a Pair*/
p= (Pair *) malloc( sizeof(Pair) );
p->a= 17;
�
free(p);
Previous slide
Next slide
Back to first slide
View graphic version