what is disadvantage of pointer in C

Answer Posted / abdul rahman

One of the disadvantage is while we are deallocating the
memory by using the free function, by mistake if we use a
pointer for which we do not allocate memory, may lead to
complete system down. This is because that unknown pointer
may point to the memory in which system files are stored.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #define size in c?

648


What is abstract data structure in c?

531


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

1627


What is the difference between malloc calloc and realloc in c?

649


praagnovation

1780






Why is c faster?

594


How are structure passing and returning implemented?

592


Dont ansi function prototypes render lint obsolete?

606


How can I remove the trailing spaces from a string?

617


What is wrong with this initialization?

593


Where does the name "C" come from, anyway?

645


What is static memory allocation? Explain

632


Write a program to swap two numbers without using third variable in c?

618


Is c still used?

604


how to create duplicate link list using C???

2075