A NOT simply gives the opposite value of whatever the value of an expression is, this means if we use NOT operator on true statement the answer will be false.
#include using namespace std; main() { bool isTRUE=true; bool isFalse=!isTrue; cout<<"isTrue:"<
Output: isTrue:1 isFalse:0