Home / C++ Programming / Functions - C++ :: Discussion

Discussion :: Functions - C++

  1. Which of the following statement is correct about the program given below?

    #include
     long GetNumber(long int Number) 
     { 
        return --Number; 
     } 
     float GetNumber(int Number)
     {   
       return ++Number; 
     } 
     int main() 
     {     
        int x = 20;   
        int y = 30;   
        cout" ";      
        cout
        return 0;  
    }
    

  2. A.

    The program will print the output 19 31.

    B.

    The program will print the output 20 30.

    C.

    The program will print the output 21 31.

    D.

    The program will print the output 21 29.

    E.

    Program will report compile time error.

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment