I write a program which takes IP address as an argument and i wanted to store this IP address in the unit32_t. I can easily convert uint32_t to back to character array. How
You use the inet_pton. function
And for the other way around you should have used inet_ntop.
For Windows-specific documentation, see inet_pton and inet_ntop.
Note that the functions can be used for both IPv4 and IPv6.