Click here to Skip to main content
15,845,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if(!Null)
{
any statements
}

what is meant by this condition i dont understand.

Or if we have no condition which we can write in if() but we want to use if then what would we write in brackets?????

What I have tried:

if simple conditions are wrote in brackets then we all know their meaning but if
! in present at the start of any condition then what is meant by it
Posted
Updated 21-Jun-18 22:35pm

In C++ the ! operator is logical NOT: Operators in C | Set 2 (Relational and Logical Operators) - GeeksforGeeks[^] - it inverts the boolean value that follows it.
If you have this code:
C++
if (!a)
   b
else
   c
Then when a evaluates to true you will execute c, and when it evaluates to false you will execute b
 
Share this answer
 
v2
I gave you a link yesterday which will explain everything about the C++ language. Please make use of it.
 
Share this answer
 
Well... you're asking the questions about meaning of C++ code...

So, why don't you buy a book and start with basics? The other way is to study tutorials, as Richard has already suggested...
C++ Language - C++ Tutorials[^]
C++ Tutorial[^]
Learn C++ Tutorial - javatpoint[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900