Does anyone know the reason for including (stdloob.h) in lab5 ? what is the importance of this header file in the code ? I already check it without including this file and it was ok.

1 Answer 1


C needs the stdbool.h header file in order to work with the Boolean data type. This might be a redundancy with the cs50.h header file, which is why the lab might have compiled without it. But, in general, if you are going to be working with Boolean values in C, you will need to include stdbool.h as this is not a built-in data type.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .