I'm trying to find the hexadecimal value of the base 16 ip address.
For example I used this code to input base 16 IP address:
and I want to display an error if the hexadecimal value of the IP address is above FF (255).Code:char ipc11,ipc12,ipc21,ipc22,ipc31,ipc32,ipc41,ipc42; printf("Please enter the IP Address:"); scanf(" %c%c.%c%c.%c%c.%c%c",&ipc11,&ipc12,&ipc21,&ipc22,&ipc31,&ipc32,&ipc41,&ipc42);
Any helps are appreciated.