+ 1

I m confused between true and false ..??

is 1= true. or. 0=true...??

6th Mar 2017, 6:34 PM
Dhanaji Yadav
Dhanaji Yadav - avatar
3 odpowiedzi
+ 1
Anything above 0 will evaluate to true. So yes, 1 evaluates to true and 0 is false.
6th Mar 2017, 6:36 PM
Alexandre Sabourin
Alexandre Sabourin - avatar
+ 1
As binary, 1 is for open(true), and 0 is for close(false)
6th Mar 2017, 6:36 PM
Alejandro Serrato
Alejandro Serrato - avatar
0
1=true and 0=false . this is boolean data types.
6th Mar 2017, 7:02 PM
Md. Shifullah
Md. Shifullah - avatar