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);
-
In the IPv4 addressing format, the number of networks allowed under Class C addresses is
-
- 214
- 27
- 221
- 224
- 214
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.