#include <windows.h>
int Sum (int a, int B)
{
return a + b;
}
void main void ()
{
DWORD a = DWORD (DWORD_PTR (PDWORD ( Sum)));
DWORD b = DWORD (DWORD_PTR (PDWORD (&Sum)));
}
How is it that a is equal to b?
If the ampersand in front of a function name is completely ignored -as it seem-, shouldn't the compiler raise at least a warning? Mine won't, not even with the /W4 switch.













