0

How can i take IP address as input and identify its class in C program ??? Give me the code

11th Feb 2018, 8:16 AM
RUMELI BANERJEE
RUMELI BANERJEE - avatar
2 Answers
- 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
11th Feb 2018, 9:12 AM
Alex
Alex - avatar