Question: PLEASE follow instructions caefully! Write a C function multFiveEighths that take an int as input and returns an int. multFiveEighths should multiply the integer by

 PLEASE follow instructions caefully! Write a C function multFiveEighths that take PLEASE follow instructions caefully!

Write a C function multFiveEighths that take an int as input and returns an int. multFiveEighths should multiply the integer by % and round towards 0. It should mimic the C expression (x*5/8). multFiveEighths must only use the operations ! ~ & ^ | + >. range should contain 10 to 20 operations. It is possible to use fewer than 10 operations but do NOT go over 20. Examples: multFiveEighths(77) => 48 multFiveEighths(-22) =>-13 multFiveEighths( 1073741 824) => 1 3421 7728 (overflow)

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!