Write One Full Program with Function to Implement Following in c++ :
sgn(x) : return sign of number (positive = 1 , negative = -1 , zero = 0)
1- Function (fnsgn1) sign1 using by Ref method2- Function (fnsgn2) sign2 using by Val method
Procedure (main):1 - test program with m= (-9)2 - call (fnsgn1) for m and store in v13 - call (fnsgn2) for m and store in v24 - sum v1 and v25 - if sum not equal to -2 then print (error) otherwise print (ok)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here