What is the primary function of a router in a network?
B. To assign IP addresses to devices on the local network.C. To provide a gateway for hosts on one network to communicate with hosts on different networks.D. To translate domain names into IP addresses.