Answered step by step
Verified Expert Solution
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started