Respuesta :

You can determine the network number by bitwise and'ing the netmask and address. The node number needs the bits of the netmask flipped and then bitwise and'ed.