Difference between null pointer and dangling pointer?
Answer Posted / vadivel t
Minor correction in my ans #4...
To Sourisengupta Question.
free() shall free the memory which is allocated dynamically.
But afrer the free() function being called,the pointer
which u r passing to free() as an argument, shall point to
the same base address, which is no more valid(ie., address
is valid but no more in the allocated memory pool. It will
be added in the free memory pool).
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Is malloc memset faster than calloc?
What is %lu in c?
What are operators in c?
Why clrscr is used after variable declaration?
Explain zero based addressing.
What is the difference between far and near ?
What is the symbol indicated the c-preprocessor?
What is I ++ in c programming?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
Are there constructors in c?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
How to implement a packet in C
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Why do we need a structure?