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

Which control loop is recommended if you have to execute set of statements for fixed number of times?

1113


What does *p++ do? What does it point to?

840


What are dangling pointers? How are dangling pointers different from memory leaks?

943


What are pointers in C? Give an example where to illustrate their significance.

993


C language questions for civil engineering

1492


How can I get the current date or time of day in a c program?

986


What is extern c used for?

795


code for replace tabs with equivalent number of blanks

1932


What are lookup tables in c?

776


what is the basis for selection of arrays or pointers as data structure in a program

4069


In which layer of the network datastructure format change is done

1665


Explain high-order and low-order bytes.

896


Who invented b language?

1167


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1159


What are the 5 types of organizational structures?

810