void main()



cout<<“\nLogical AND “;

cout<<“\n1&&1= “<<(1&&1);

cout<<“\n1&&0= “<<(1&&0);

cout<<“\n0&&1= “<<(0&&1);

cout<<“\n0&&0= “<<(0&&0);

cout<<“\nLogical OR “;

cout<<“\n1||1= “<<(1||1);

cout<<“\n1||0= “<<(1||0);

cout<<“\n0||1= “<<(0||1);

cout<<“\n0||0= “<<(0||0);

cout<<“\nLogical NOT”;

cout<<“\n!1= “<<(!1);

cout<<“\n!0= “<<(!0);



23,424 total views, 10 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

1,580 Thoughts to “C++ Program To Demonstrate Logical Operators”

  1. This design is wicked! You definitely know how to keep a reader entertained.

    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job.
    I really enjoyed what you had to say, and more than that, how
    you presented it. Too cool!

  2. Howdy! This post could not be written much better! Going through this post reminds me of my previous roommate!
    He continually kept preaching about this. I will forward this post to
    him. Pretty sure he’ll have a great read. Thanks for sharing!

Leave a Comment