i am making an application for fetching the IP address from the domain name using the hostent structure i am able to insert all the data in the structure successfully and i am able to fetch the
Host Name:
Type:
Length:
but not able to fetch the IP address in the dotted format using by the below function

int get_ip()
{
int i;

const char *hostname="www. google.co.in";...