Hello im having trouble understanding between the difference 0 and 1 in C. the way i understood it is that 0 is true and 1 is false. Is this correct??? or is it 0 is false and 1 is true??
[url]http://web.archive.org/web/20080618001558/c-faq.com/bool/bool2.html[/url] Read More
[B]>there is nothing in C demands that TRUE = 1 and FALSE = 0.[/B] Depends on the context. If you mean at the language level, then yes, relational comparisons are required to treat zero as false and non-zero as true. [B]>for instance, i write device drivers following a popular >convention … Read More
Edited by jephthah: n/a