Computer Science, asked by Anonymous, 3 months ago

What will be the result of the expression 5 and 10?​

Answers

Answered by maniahastag
2

Explanation:

Well in programming languages as far as my knowledge goes, the AND operator is denoted by && and not & . Assuming that u wanted the answer to 13&&25 the computer will evaluate it to 1.

Reason

In binary operation evaluation every constant in the world other than 0 is designated 1 and only 0 is 0 (although it sounds funny it might have serious consequences in ur exam paper ) .

Hence 13 becomes 1 and 25 becomes 1.

So 1 AND 1 is 1.

Hence 1.

Similar questions