what will happen if you free a pointer twice after
allocating memory dynamically ?

Answer Posted / karnik ankit

segmentation fault will be created

Is This Answer Correct ?    4 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are run-time errors?

807


What is the difference between a string and an array?

905


Why do we need volatile in c?

930


What is include directive in c?

832


What does 3 periods mean in texting?

798


What is pointer in c?

950


What does the error message "DGROUP exceeds 64K" mean?

972


Write a program for Overriding.

900


Explain how can a program be made to print the name of a source file where an error occurs?

931


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

838


Why does everyone say not to use gets?

795


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

756


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

865


What is the process to generate random numbers in c programming language?

863


what do you mean by inline function in C?

817