How can one write a program that will display its boolean value as true wen compiled? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can one write a program that will display its boolean value as true wen compiled?

27th Jul 2016, 12:44 AM
Leo Smile
Leo Smile - avatar
1 Answer
0
You could do something like this: static void main(){ bool myCondition = true; cout<<myCondition; }
28th Jul 2016, 8:41 PM
Matt Ferrie
Matt Ferrie - avatar