I am new to C, what exactly does #algo
do here?
#define run(algo) execute(&algo, #algo)
In the function definition of execute
it looks like it's somehow used for constant parameters ...
void execute(int (*algo_func)(int *, int, int), const char * algo_name)
{
int hit = 0, miss = 0;
...
I found this here at line 408: https://github.com/scandum/binary_search/blob/master/binary-search.c