what is boolean used for, in cpp? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

what is boolean used for, in cpp?

12th Jul 2022, 11:29 AM
Christoph Macquelin
Christoph Macquelin - avatar
1 Réponse
+ 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.
12th Jul 2022, 11:37 AM
Rik Wittkopp
Rik Wittkopp - avatar