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

Why static is used in c?

618


What is sorting in c plus plus?

563


What is the maximum no. of arguments that can be given in a command line in C.?

664


Why is sizeof () an operator and not a function?

577


Explain what is the difference between a string and an array?

630






What are run-time errors?

598


What is ponter?

768


What is the description for syntax errors?

611


Explain what is the benefit of using #define to declare a constant?

604


What is the use of ?

619


given post order,in order construct the corresponding binary tree

2321


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

660


what do you mean by inline function in C?

609


Why c is called free form language?

566


What is the difference between struct and typedef struct in c?

652