Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i am trying to figure out how to fix this problem. when i run the debugger, gdb, it tells me thatthe error is at the

i am trying to figure out how to fix this problem. when i run the debugger, gdb, it tells me thatthe error is at the for loop, line 100. its creating an infinite loop. i was thinking to fix it we could change the for loop into a while loop. image text in transcribed
please answer in c++
86 87 88 Purpose: 89 Compare C-strings 90 Parautars 91 const chur left, const char * right strings to compare 92 Rotum 93 ant 94 = means the strings are identical 95 @ means left right 97 98 int strcmp(const char * left, const char * right) 99 { for *left == *right; left++, right+ if (*left = '\0') return 0; 101 return ((*(unsigned char *) left 100

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

using signal flow graph

Answered: 1 week ago