adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main ()
    {
        int a, b;         
        a = 10;           
        b = 4;            
        a = b;           
        b = 7;           
        cout << "a:";
        cout << a;
        cout << " b:";
        cout << b;
        return 0;
    }

a.

a:4 b:7

b.

a:10 b:4

c.

a:4 b:10

d.

None of the mentioned

Answer: (a).a:4 b:7

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?