Home » C++ Programming » Data Types » Question
  1. What will be the output of this program?
    #include 
    using namespace std;
    int main()
    {
    int P = 20;
    cout << "Given integer 'P' with 'true' :" << P && true;
    return 0;
    }
    1. Given integer 'P' with 'true' :20
    2. Given integer 'P' with 'true' :0
    3. Given integer 'P' with 'true' :2
    4. All of above
    5. None of these
Correct Option: A

Given integer 'P' with 'true' :20



Your comments will be displayed only after manual approval.