I want to write generic function (for example, function that get array in type of void**
and doing something about this array) such then this function will get the type of the element (in the example, it's will be the type of any element in the array) as a argument.
Can I do it in c?
For example:
I want to write a function that get array (in type of void**
) and initialize this array in some random way.
By "in some random way" I mean, for example a function that gets as arguments: array (in type void**
) , the type of any element in the array, index (in type of int
) and initialize this cell.