In a /24 network you can't use 0
because it is the identification of the network (devices use it to recognize the different networks they are connected to).
In a Windows PC open a Command Prompt and type netstat -r
. You will get the routing table used by the PC, each network is listed using the network identification (first address).

The last address, 255
in the case of a /24 network, is the broadcast address. Devices connected to the network use it to send a broadcast, a message intended for all devices on the network.
In general the first address is the network identification and the last one is the broadcast, they cannot be used as regular addresses.