Suppose that the input stream cin contains the IP address: 2…

Suppose that the input stream cin contains the IP address: 298.173.41.142Assuming that the variables A and B are declared as ints, which of the following code fragments will correctly read the second part of the IP address (173) into the variable B? 1) cin >> A;    cin.ignore(100, ‘.’);    cin >> B; 2) cin >> A;    cin >> B; 3) cin.ignore(100, ‘.’);    cin >> B;  4) cin.get(A);    cin.get(B);