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
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What does *p++ do? What does it point to?
What are dangling pointers? How are dangling pointers different from memory leaks?
What are pointers in C? Give an example where to illustrate their significance.
C language questions for civil engineering
How can I get the current date or time of day in a c program?
What is extern c used for?
code for replace tabs with equivalent number of blanks
What are lookup tables in c?
what is the basis for selection of arrays or pointers as data structure in a program
In which layer of the network datastructure format change is done
Explain high-order and low-order bytes.
Who invented b language?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What are the 5 types of organizational structures?