0
what is boolean used for, in cpp?
2 Antworten
+ 4
Christoph Macquelin
Boolean values are used to test whether the conditions of a statement are true or false.
The returned values are used to determine the continued flow of the code until an output ir result is reached.
We use the same concepts every day in our life.
Example:
It's morning and I am hungry -> True: Eat breakfast.