Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) (5 points) The following program is used to check if a given number is the po

ID: 3743256 • Letter: 1

Question

1) (5 points) The following program is used to check if a given number is the power of 2 using bitwise operator I #include #de fine NUM BITS INT (8*sizeof(double)) - 4int power2 (unsigned int x) int i, count 0, result, shift num; for (i=0; > i; result shift num && 1: if (result) 12 13 14 15 16 counttt if (count 2= 1) printf("YES") 18 19 20 printf("NO"): 21 22 int main ) 23 unsigned int num; 25 26 27 28 29 30 printf (nEnter Number") scanf("%d", num); this.power2 (nm) return 0 Which line(s) is(are) incorrect? And how to correct it(them)? Please write down your correction for that line (those lines)

Explanation / Answer

Answer line 1:

In the line 4 the function power2 the return statement should be "void".

Since the function returns nothing, so the return statement should be "void".