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

Explain the red-black trees?

827


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1186


Explain the use of #pragma exit?

917


Explain how do you convert strings to numbers in c?

834


How to implement a packet in C

2618


What are types of structure?

831


What do you mean by keywords in c?

892


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1677


What is c++ used for today?

875


what is reason of your company position's in india no. 1.

1977


Is c procedural or functional?

791


Explain what is the difference between functions abs() and fabs()?

852


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

899


Write a simple code fragment that will check if a number is positive or negative.

918


Write a program to check prime number in c programming?

820