Integer versus boolean
#1

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
Reply


Messages In This Thread
Integer versus boolean - by BiosMarcel - 14.05.2016, 10:27
Re: Integer versus boolean - by Konstantinos - 14.05.2016, 10:37
Re: Integer versus boolean - by BiosMarcel - 14.05.2016, 10:42
Re: Integer versus boolean - by Konstantinos - 14.05.2016, 10:49
Re: Integer versus boolean - by iggy1 - 14.05.2016, 11:00
Re: Integer versus boolean - by BiosMarcel - 14.05.2016, 11:06
Re: Integer versus boolean - by Konstantinos - 14.05.2016, 11:10
Re: Integer versus boolean - by BiosMarcel - 14.05.2016, 11:14
Re: Integer versus boolean - by AbyssMorgan - 14.05.2016, 11:35
Re: Integer versus boolean - by BiosMarcel - 14.05.2016, 11:38

Forum Jump:


Users browsing this thread: 3 Guest(s)