What is a memory leak? How to avoid it?
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 |
#include<stdio.h> int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20
What is call by value in c?
What is the explanation for cyclic nature of data types in c?
I want tcs placement papers of 2004-2009 , its urgent
What is the use of linkage in c language?
WAP to accept first name,middle name & last name of a student display its initials?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How will you find a duplicate number in a array without negating the nos ?
How to develop software using "c" programming?
What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }
coding for Fibonacci.?
Explain what does the format %10.2 mean when included in a printf statement?