Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

please, explain shortly for each answer
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

Factors Affecting Conflict

Answered: 1 week ago

Question

Describe the factors that lead to productive conflict

Answered: 1 week ago

Question

Understanding Conflict Conflict Triggers

Answered: 1 week ago