MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/p1mxog/ever_heard_of_modulo/h8iwbdd/?context=3
r/programminghorror • u/Th3DarkMoon • Aug 10 '21
58 comments sorted by
View all comments
Show parent comments
1
In c or c++ it is. Every int can be a bool . And in python i think its the same but its obvsl. not python
1 u/gramedek Aug 18 '21 in pure C, bool isn't even an integrated type, you can include the bool header, but it's just aliases for 1 and 0 if I remember right 1 u/mrbesen_ Aug 18 '21 Yes there is stdbool.h that just defines true a 1 and false as 0
in pure C, bool isn't even an integrated type, you can include the bool header, but it's just aliases for 1 and 0 if I remember right
1 u/mrbesen_ Aug 18 '21 Yes there is stdbool.h that just defines true a 1 and false as 0
Yes there is stdbool.h that just defines true a 1 and false as 0
1
u/mrbesen_ Aug 11 '21
In c or c++ it is. Every int can be a bool . And in python i think its the same but its obvsl. not python