Do you#include <stdbool.h>
or#define TRUE 1
#define FALSE 0
typedef int bool;
or just let it be and use 0 and 1 and ints directly?
>>55038171
I stop being retarded, m9
>>55038184
Explain
>>55038203
I don't teach pajeets
>>55038171
typedef enum {true, false} bool;
or plain unsigned chars or ints.. unless you need to serialize and/or size matters. Allows you to have more states if you like.
>>55038171
Neither, I use c99 because I can
>>55038584
So?
>>55038171
You#include <stdbool.h>
>>55038171
both are wrong you faggot
>typedef int bool
>int
Disgusting.
#include <stdbool.h>
>>55038771
char is slower
>>55038171
>c
>2016
sure if it makes you feel smarter having to re-implement true or false in every project
>>55038171
I use Rust
>>55038171
neithertypedef enum {false = 0, true = 1} boolean;
>>55039097
contestant 1
>>55038171
just use ints and return 1 for true, 0 for false
If you're stupid enough to use C, there's no point in trying to act smart about it.
>>55039097
conestant 4
>>55039097
contestant 2 cause it points to [0]
>>55039097
Undefined behavior
Friendly reminder to always#define TRUE FALSE
>>55039097
Black boy, white girl.
>>55039097
2 because she's obviously a coal burner
>>55038171
>or just let it be and use 0 and 1 and ints directly?
this. technically zero and nonzero, not zero and one. less verbose and anyone smart enough to read or write C understands it.
>>55039097
And that's why C sucks, kids.