Home » C++ Programming » Questions and Answers » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    double Time()
    {
    double T = 26.25;
    double H = T;
    return H;
    }
    int main()
    {
    double H = Time();
    cout << "Weekly Hours: " << H;
    return 0;
    }
    1. Compilation Error
    2. Runtime Error
    3. Garbage value
    4. Weekly Hours: 0
    5. Weekly Hours: 26.25
Correct Option: E

We are returning the value what we get as input.



Your comments will be displayed only after manual approval.