adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main () 
    {
        int n; 
        n = 43;
        cout << hex << n << endl;
        return 0;
    }

a.

2c

b.

2b

c.

20

d.

50

Answer: (b).2b

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?