linked linked linkedin whatsapp remove
Feedback

System Programming Quiz System Programming

Correct the following code: 10 int my_sock; : 20 my_sock = socket(anaddr.sin_family, SOCK_STREAM, 0); 21 if (my_sock >= 0) { /* error processing */ : }

line 21: if (my_sock < 0) {
line 20: my_sock = (int *)socket(anaddr.sin_family, SOCK_STREAM, 0);
line 20: my_sock = socket(SOCK_STREAM, anaddr.sin_family, 0);
line 10: SOCKET * my_sock;

Answer:
line 21: if (my_sock < 0) {

Note: This Question is unanswered, help us to find answer for this one