What is the output of the following snippet?

Last Updated on May 3, 2022 by Admin 3

What is the output of the following snippet?

#include <iostream>
using namespace std;

int main()
{
    bool b1 = !true;
    bool b2 = !b1 && false;
    bool b3 = b2 || true;
    if(b3)
       cout << "true";
    else
       cout << "false";
}
  • true
  • 0
  • false
  • 1
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments