I encountered the following code snapshot: I am rather confused by the last statement, the declaration of struct hostent is like this: It doesn’t have a field named “h_addr”, but the code did can compile, can anyone tell me why? thanks. Answer You missed this bit right under it: So no, there is no problem.