Question: The function 1s_odd () takes 1 parameters type of double returns a 1 if the number is odd and if the number is even. The
The function 1s_odd () takes 1 parameters type of double returns a 1 if the number is odd and if the number is even. The function print_is_odd () prints out "Number is ODD" if the input parameter is 1, and "Number is EVEN" if the input parameter is 0. However, the code produces the wrong output when executed as shown in the figure below. Rewrite the single line of code that will fix this bug. mainc 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
