As null pointer points to nothing. So, How does the following code works
#include <stdio.h>
class cb
{
public:
void HelloB()
{
printf("Calling cb\n");
};
};
int main(void)
{
cb* pb = 0;
pb->HelloB(); // should it crash here ?
return 0;
}