Respuesta :

They are different, otherwise false. For example, the function should return true for -1 and +100 and should return false for -100 and -200. The function should not use any of the arithmetic operators.

Let the given integers be x and y. The sign bit is 1 in negative numbers and 0 in positive numbers. The XOR of x and y will have the sign bit as 1 if they are opposite in sign. In other words, the XOR of x and y will be a negative number if x and y have opposite signs. The following code uses this logic.

For more information about opposite numbers, visit

https://brainly.com/question/10488315

#SPJ9

Check the numerical value and the sign to know whether the two integers are opposite to each other.

First of all we need to learn the concept of number system and the concept of integers.

Number system consists of all the natural numbers, even numbers, odd numbers, prime numbers, composite numbers and also integers.

All the numbers in mathematics are termed as integers it could either be positive or be negative.

If number has a negative sign before it then it can be termed as negative.

If there is a positive sign before it then it can be termed as positive.

The opposite numbers are the numbers which has opposite signs before them but has the same numerical value.

for example: +15 and -15 are opposite to each other.

To learn more about integers and number system visit the link:

https://brainly.com/question/22046046

#SPJ9

ACCESS MORE