0
How can i take IP address as input and identify its class in C program ??? Give me the code
1 Respuesta
- 1
You just need the first number to identify it's class.
Convert it to binary and check the first 4 bits.
0.... class A
10... class B
110... class C
1110... class D
1111... class E