Which of the following correctly declares a method that accepts one…

PYQ RPSC Programmer 2024

Which of the following correctly declares a method that accepts one dimensional array of double as a parameter?

  1. A.

    public void fun(double *arr[])

  2. B.

    public void fun(double[] arr)

  3. C.

    public void fun(arr double[])

  4. D.

    public void fun(double arr)

  5. E.

    Question not attempted

Attempted by 702 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…