Boolean operator is used as output and input why | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 12

Boolean operator is used as output and input why

22nd May 2019, 3:43 AM
SĻ‰Ati
SĻ‰Ati - avatar
3 Respostas
+ 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