The following code is supposed to take the characters stored in str and move those characters into buff in reverse order, but there is a coding mistake preventing this.
Find the bug.
// reverses str and puts the result in buff
// NOTE: buff must be at least as large as str
void strReverse(const int str_length, const char* str, char* buff) {
// special case for zero-length strings
if( str_length == 0 ) {return; }
// reverse
int i;
for(i = 0; i < str_length; ++i) {buff[i] = str[str_length - i]; }
buff[i] = '\0';
}
my answer was 53
what is the technical name for debugging?
Debugging
Debugging in Google Chrome can be done using Inspect Element. F12 is the shortcut key for enabling debugging.
Great article of debugging, including debugging applets: http://kaidokalda.blogspot.com/
A formula is a statement. It's not a problem or an exercise to which a solution is needed.
A formula is a statement. It's not a problem or an exercise to which a solution is needed.
Give us the problem, and we'll help you solve it.
Allinea Distributed Debugging Tool was created in 2002.
Micro Mouse Goes Debugging was created in 1983.
Micro Mouse Goes Debugging happened in 1983.
Debugging and error handling are the same thing. true