Question: ?? P40: bool posNeg(int val1, int val2, bool negative); Due No Due Date Points 15 Submitting a text entry box or a file upload Given
P40: bool posNeg(int val1, int val2, bool negative); Due No Due Date Points 15 Submitting a text entry box or a file upload Given 2 int values, return true if one is negative and one is positive. Except if the parameter "negative" is true, then return true only if both are negative. posNeg(1, -1, false) Return true posNeg(-1, 1, false)Return true posNeg(-4, -5, frue)Return true /Function prototype: bool posNeglint val1, int val2, bool negative)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
