Home » C++ Programming » Basic Syntax » Question
  1. What is the output of this program?
    #include <iostream>
    using namespace std;
    int main()
    {
    unsigned long num = 56;
    cout << num << oct <<" " << num << endl;
    return 0;
    }
    1. 56
    2. 70
    3. 70 56
    4. 56 70
    5. None of these
Correct Option: D

In this program, We are finding the octal number of given number by using oct function.



Your comments will be displayed only after manual approval.