logo

Crowdly

Browser

Add to Chrome

What will be the output of the following C code? #include <iostream> using na...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What will be the output of the following C code?

#include <iostream>

using namespace std;

int main() {

    int a = 0, b = 1;

    if (a & b)

    { cout << "1"; return 1; }

    else {

      if (a && b)

      { cout << "2"; return 2; }

      else { cout << "3"; return 3; }

    }

    return 0;

}

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on do.ipo.kpi.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome