what will happen if you free a pointer twice after
allocating memory dynamically ?
Answer Posted / manoj
Nothing will happen. program will run fine.
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Which is better malloc or calloc?
What are local static variables? How can you use them?
What is c variable?
What is a substring in c?
What are the string functions? List some string functions available in c.
How do you list files in a directory?
What is memory leak in c?
What does c mean before a date?
What are dangling pointers? How are dangling pointers different from memory leaks?
How many types of sorting are there in c?
The statement, int(*x[]) () what does in indicate?
Explain indirection?
What is the usage of the pointer in c?
How do you determine the length of a string value that was stored in a variable?
Why do we use int main instead of void main in c?