adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main ()
    {
        int n;
        n = -77;
        cout.width(4); 
        cout << internal << n << endl;
        return 0;
    }

a.

77

b.

-77

c.

– 77

d.

None of the mentioned

Answer: (c).– 77

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?