adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main () 
    {
        char str[] = "Steve jobs";
        int val = 65;
        char ch = 'A';
        cout.width (5);
        cout << right;
        cout << val << endl;
        return 0;
    }

a.

Steve jobs

b.

A

c.

65

d.

65

Answer: (d).65

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?