Is there any difference between bool foo = true and bool foo = 1?
Channel:
Subscribers:
4,140
Published on ● Video Link: https://www.youtube.com/watch?v=wVAv-rCIbhE
Is there any difference between bool foo = true and bool foo = 1?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(stackoverflow.com/users/20177329/youssef-gamil)Youssef Gamil
(stackoverflow.com/users/7582247/ted-lyngmo)Ted Lyngmo
(stackoverflow.com/users/2877241/vlad-from-moscow)Vlad from Moscow
A special thanks goes out to the (https://stackoverflow.com/questions/76566957/is-there-any-difference-between-bool-foo-true-and-bool-foo-1)Stackexchange community
I wish you all a wonderful day! Stay safe :)
boolean integer implicit-conversion literals c++
Other Videos By Peter Schneider
Tags:
boolean
integer
implicit-conversion
literals
c++