I have a bool defined in stdbool.h as:
#define bool _Bool #define true 1 #define false 0
Now if a bool called negative. Can I do:
bool negative; uint8_t k = 0; uint8_t my_buffer; if (a < 0) negative = true; else negative = false; my_buffer[k + negative] = 99;
Or can I do:
i = k +negative + 22;
I.e. is true defined as 1 by standard, or is the complier variable?