Home » Computer Networks » Computer networks miscellaneous » Question

Computer networks miscellaneous

Direction: Consider the following C code segment:
int a, b, c = 0;
void prtFun (void);
main ()
{static int a = 1; /* Line 1 */
prtFun ();
a + = 1;
prt Fun ();
printf (“\n %d %d”, a, b);
}
void prt Fun (void)
{ static int a = 2;
int b = 1;
a + = + + b;
}
printf (“\n %d” %d”, a, b);

  1. Which of the following transport layer protocols is used to support electronic mail?
    1. SMTP
    2. IP
    3. TCP
    4. UD
Correct Option: C

E-mail uses SMTP (Simple Mail Transfer Protocol) in application layer to transfer mails and SMTP uses TCP (Transport Control Protocol) to transfer data in transport layer.



Your comments will be displayed only after manual approval.