There is one thing in C that always seems weird for me, when using function pointers in function argument why sending the function name is the same as sending the function address?
void bar(void (*functionPtr)())
{
doSomething
}
void foo(void)
{
doSomething
}
int main()
{
bar(&foo);
bar(foo); // why is this the same? In C logic it's not supposed to work
return (0);
}