Home » C++ Programming » Basic Input/Output » Question
  1. What is the output of this program?
    #include <iostream>
    using namespace std;
    int main ()
    {
    int num;
    num = -25;
    cout.width(4);
    cout << internal << num << endl;
    return 0;
    }
    1. 25
    2. -25
    3. - 25
    4. Compilation Error
    5. None of these
Correct Option: C

In this program, We are using the internal function and moving the 25 to one position.



Your comments will be displayed only after manual approval.