0 votes
by (160 points)
Is 0 True or false?

1 Answer

0 votes
by (220 points)
are defined to have value 1 if true and 0 if false, whereas the test parts of if , while , for , etc., treat any non-zero value as true. Indeed, a Boolean variable may be regarded (and implemented) as a numerical variable with one binary digit (bit), which can store only two values.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jun 29, 2021 by exponent (140 points)
0 votes
1 answer
0 votes
1 answer
asked Feb 27, 2020 by colder (300 points)
0 votes
1 answer
asked Nov 28, 2019 by white (620 points)
0 votes
1 answer
asked Nov 28, 2019 by colder (300 points)
0 votes
1 answer
asked Nov 28, 2019 by colder (300 points)
0 votes
1 answer
0 votes
1 answer
asked Aug 16, 2021 by copper (300 points)
...