+ 12

Boolean operator is used as output and input why

22nd May 2019, 3:43 AM
SωAti
SωAti - avatar
4 odpowiedzi
+ 6
I don't know iam just asking that why the output is always 0,1
22nd May 2019, 3:48 AM
SωAti
SωAti - avatar
+ 6
Ooooh to save space in memory. It is much more efficient to store a true / false variable as a binary representation (1 or 0 respectively) than as a string.
22nd May 2019, 3:52 AM
jay
jay - avatar
+ 3
Can you provide some more context to your question. Is there an example code you could provide?
22nd May 2019, 3:46 AM
jay
jay - avatar