Why are memory errors hard to debug?
The first thing to understand about memory errors is why they're different from other bugs. I claim the main reason they are harder to debug is that they are fragile. By fragile, I mean the bug will often only show up under certain conditions, and that attempts to isolate the bug by changing the program or its input often mask its effects. Since the programmer is then forced to find the needle in the haystack, and cannot use techniques to cut down on the size of the haystack, locating the cause of the problem is very difficult.
Consequently, the first priority when tracking down suspected memory errors is to make the bug more robust. There is a bug in your code, but you need to do something so that the bug's effects cannot be masked by other actions of the program.
| Is This Answer Correct ? | 1 Yes | 0 No |
A sample program using data structure? what is file handling?
I can not get my C++ program to work right. It is supposed to tell if a word is a palindrome or not, but it only tells thet the word is not a palindrome. And I can't fix it.
To generate the series 1+3+5+7+... using C program
How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?
char* f() return "hello:"; void main() {char *str=f(); }
#include<>stdio.h> #include<>conio.h> { printf("hello"); void main() getch(); } what the out put of this program and why ......plz clear my answer
main() { char c; for(c='A';c<='Z';c++) getch(); }
void main() { int i=7; printf("N= %*d",i,i); }
printy(a=3,a=2)
full c programming error question based problem
void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?