i need to write a C++ or Java program that will receive as input an IP Address in decimal format
The program will identify and print the class of that IP according to the first octet. Then it will perform binary bitwise AND operation between the IP address and the corresponding Subnet Mask. In C++ you can use the bitwise “&“ operator to do that. Also you have to represent both the IP Address and the Subnet Mask in binary format. In C++ you have to declare a variable as an unsigned integer.
can u help me with this??