Answer Posted / hrpynux@gmail.com
Memory leak occurs when programmers create a memory in heap and forget to delete it. ... To avoid memory leaks, memory allocated on heap should always be freed when no longer needed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you initialize pointer variables?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What is const volatile variable in c?
What are global variables and explain how do you declare them?
Are the variables argc and argv are always local to main?
What is malloc calloc and realloc in c?
What is the equivalent code of the following statement in WHILE LOOP format?
why programs in c are running with out #include
how to create duplicate link list using C???
Is c still used?
p*=(++q)++*--p when p=q=1 while(q<=6)
Is c procedural or functional?
What is a program flowchart and explain how does it help in writing a program?
What is wrong with this program statement? void = 10;
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].