Parametric polymorphism: Difference between revisions

Line 43:
 
=={{header|C}}==
If the goal is to separate algorithms from types at compile typetime, C may do it by macros. Here's sample code implementing binary tree with node creation and insertion:<lang C>#include <stdio.h>
#include <stdlib.h>
 
Anonymous user