int()
is a constant expression with a value of 0, so it’s a valid way of producing a null pointer constant. Ultimately, it’s just a slightly different way of saying int *ptr = NULL;
int()
is a constant expression with a value of 0, so it’s a valid way of producing a null pointer constant. Ultimately, it’s just a slightly different way of saying int *ptr = NULL;