C program to format/extract ip address octets
This program will read IP address from user in string format, and extract each octet from the given user input. User input must be in xxx.xxx.xxx.xxx format. An IP address has four octets and using this program we will extract given octets in string format to an integer format.
Extract Octets from Ip/ Fomrat Ip address from string using C program
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer