I have a void* I am getting in some function which is actually a two-dimensional int array. I want to send it as an argument to a function that expects a two dimensional array. What is the BEST way to cast it properly?
void foo(void* val){ //How to cast val in order to send to bar?? bar() } void bar(int val[2][2]){ //Do something }
void *translate itself automatically in C?