type bool in C
calc array length in C or C++