logo

Crowdly

Browser

Add to Chrome

21. What is wrong with the following program? #include <iostream> using n...

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

21. What is wrong with the following program?

#include

<iostream>

using

namespace std;

int

main() {

    int x;

    cout << "Enter a number: ";

    cin >> x;

    if (x = 5) {

        cout << "x is equal to

5" << endl;

    }

    return 0;

}

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

Want instant access to all verified answers on e.tsi.lv?

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

Browser

Add to Chrome