Q. The function used to convert a string to an int is . . . . . . . .
β
Correct Answer: (D)
INET_STOI()
Explanation: INET_ATON(): This function is used to convert an IP address in dotted-quad notation (IPv4) to a numeric value. It returns the numeric representation of the IP address as an unsigned integer.