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. In the IPv4 addressing format, the number of networks allowed under Class C addresses is
    1. 214
    2. 27
    3. 221
    4. 224
Correct Option: C

In class C of IPv4 addressing

So, for network, there are 24 bits But for class C addressing, the first 3 bits are used to represent class C network.

We have 21 bits to generate network for class C. So total number of network in class C = 221.



Your comments will be displayed only after manual approval.