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 |
void main() { int i=7; printf("N= %*d",i,i); }
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.
#include<>stdio.h> #include<>conio.h> { printf("hello"); void main() getch(); } what the out put of this program and why ......plz clear my answer
A sample program using data structure? what is file handling?
void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?
wap for bubble sort
difference between c/c++ programing language? what is necessesity of c++ when existing c programing language?
full c programming error question based problem
Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;
how to convert decimal to binary in c using while loop without using array
50 Answers Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
void main() { int i=5,y=3,z=2,ans; clrscr(); printf("%d",++i + --z + i++ + --i * ++y); i=5,y=3,z=2; ans=++i + --z + i++ + --i * ++y; printf("\n%d",ans); getch(); } Its output is 37 and 31.... Please explain me why its different How it works.....