Why is boolean considered a subtype of integers?
Answers
Answer:
plplease follow me and mark me as brilliant.
Explanation:
Boolean values are the two constant objects False and True. They are used to represent truth values (other values can also be considered false or true). In numeric contexts (for example, when used as the argument to an arithmetic operator), they behave like the integers 0 and 1, respectively.
Answer:
Boolean is considered a subtype of integers as the two constant objects False and True are used to represent Boolean values.
They are used to denote truth values (other values can also be considered false or true). They act like the numbers 0 and 1, respectively, in numeric situations (for example, when given as the argument to an arithmetic operator).
False representes zero, whereas true is represented by one. In terms of interpretation, zero is understood as false, whereas everything other than zero is interpreted as true. C programmers generally specify the words "true" and "false" to have values 1 and 0, respectively, to make life simpler.
A boolean expression (named after mathematician George Boole) is a statement that can be true or false.
Learn more about boolean expressions here:
https://brainly.in/question/4513376
Learn more about the declaration of boolean expressions here:
https://brainly.in/question/2809178
#SPJ3