Home / C# Programming / Functions and Subroutines :: Discussion

Discussion :: Functions and Subroutines

  1. If a function fun() is to sometimes receive an int and sometimes a double then which of the following is the correct way of defining this function?

  2. A.
     static void fun(object i)
     { ... }
    B.
     static void fun(int i)
     { ... }
    C.
     static void fun(double i, int j)
     { ... }
    D.
    static void fun(int i, double j) 
    { ... }
    E.
    static void fun(int i, double j, ) 
    { ... }

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment