Question: Question 4 Write a C function to calculate the quadratic equation y = 2x-3x+1 assuming x and y are 32-bit numbers. Some values of x
Question 4 Write a C function to calculate the quadratic equation y = 2x-3x+1 assuming x and y are 32-bit numbers. Some values of x will cause the calculation of y to extend beyond the values allowed by 32-bit signed numbers. Determine the largest possible value for x, such that y -231. Use this threshold to return y = 0x80000000 (-21) if the input value would create underflow. The prototype for this function is int32_t Quadratic(int32_t x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
