Question: please, explain shortly for each answer The C function below is intended to check whether string olleh is the reverse of hello. If the two

The C function below is intended to check whether string olleh" is the reverse of "hello". If the two su returns 1. Otherwise, it returns 0. s intended to check whether strings contains the reverse of string t. For example ello". If the two strings are the same when one is reversed, the function Unfortunately, Prof. Lumetta left a few bits out. int backwards (char* s, char* t) char* u - S; ;] while ('\0' !- *u) { while ('10' ! if (s == // blank #1 1/ blank #2 // blank #3 // blank #4 | !- *t) { // blank #5 return Circle EXACTLY ONE ANSWER to indicate what should appear in each blank in the code above. 1. (5 points) blank #1 A) *---*++ B) s++ C) +++ D) u++ E) -- 2. (5 points) blank #2 A) t++ B) +++ C) t D) s E) *u 3. (5 points) blank #3 A) -- B) t-- C) u - 1 D) -- E)--t 4. (5 points) blank #4 A) *u-'0' B) * - *t C) --s D) return 0 E) return 1 5. (5 points) blank #5 A) U - S B) u- t C) == u D'10' == *s E) s++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
