Question: Write a user defined function called Fun _ ValueRef _ Param that returns a boolean type and takes 2 integer parameters ( x and y

Write a user defined function called Fun_ValueRef_Param that returns a boolean type and takes 2 integer parameters (x and y). The parameter x is passed by value and y is passed by reference. The variable y is changed to a number (say 100). If the sum of the value of parameter x and newly updated value of y is negative then the function returns false otherwise returns true.
Also write the statement to call the function created above in the main method - assume that this function is a member of class named Class1.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!