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


Please Help Members By Posting Answers For Below Questions

When c language was developed?

633


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

639


Explain what is the difference between a free-standing and a hosted environment?

632


Explain how can I open a file so that other programs can update it at the same time?

586


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1855






What is the difference between functions abs() and fabs()?

644


What is pass by value in c?

593


What is the maximum length of an identifier?

663


What is meant by keywords in c?

614


What is #define used for in c?

609


write a program to generate address labels using structures?

4005


What is nested structure in c?

608


What are lookup tables in c?

548


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

674


If I have a char * variable pointing to the name of a function ..

649