Home » C++ Programming » Questions and Answers » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    int main()
    {
    typedef int number;
    number P = 25, Q = 12;
    number R = P + Q + P - Q;
    cout << R;
    return 0;
    }
    1. 25
    2. 12
    3. 50
    4. Compilation Error
    5. None of these
Correct Option: C

In this program, we are manipulating the numbers and printing the result using user-defined data types.



Your comments will be displayed only after manual approval.