14.05.2016, 10:27
0 and 1 are interpreted as false and true.
so you can basically use an integer as a boolean , since i want to optimize the memory usage i was asking myself what the size of a boolean and the size of an integer is.
I am not sure if it differs from language to language so i am asking here now, please don't answer if you don't know it for sure
so you can basically use an integer as a boolean , since i want to optimize the memory usage i was asking myself what the size of a boolean and the size of an integer is.
I am not sure if it differs from language to language so i am asking here now, please don't answer if you don't know it for sure