Back Button
Back to Chapter
C++ Introduction
No items found.
C++ Basics
No items found.
C++ Control Statements
No items found.
C++ Logical Operators
No items found.
C++ Procedural Programming
No items found.
C++ Structural Programming
No items found.
C++ Implementation of OOPS
No items found.
C++ Arrays and Vectors
No items found.
C++ Error Handling
No items found.
C++ File Handling
No items found.
Collapse_Icon
Table of Contents

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