Arduino Forum
Casting boolean to int
Projects
Programming
GoForSmoke
March 25, 2012, 12:14am
2
Try it and see.
On some chips/systems, TRUE is all bits set. Then the answer would be 3.
show post in topic
Related topics
Topic
Replies
Views
Activity
Convert int to boolean
Troubleshooting
2
13487
May 6, 2021
Passing vars to functions. Do the vars auto cast?
Programming
6
2560
May 5, 2021
Best coding practice.
General Discussion
25
11795
May 5, 2021
Drop the boolean data type, its broken. (or fix it)
Website and Forum
16
12370
May 6, 2021
strange behavior of overloaded function
Syntax & Programs
7
2019
May 6, 2021