what is disadvantage of pointer in C
Answer Posted / sourisengupta
The only drawback of pointer in C maybe that if used
carelessly, you can access and overwrite some critical
memory. For Eg: if you declare an array of 5 ints, arr[5].
and if you try to write on arr[5], you will end up writing
outside the array, and eventually corrupt some memory
location. So data security is lost while handling pointers
| Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
Does c have circular shift operators?
Where static variables are stored in c?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
c program to compute AREA under integral
How can a program be made to print the name of a source file where an error occurs?
What does *p++ do?
Difference between pass by reference and pass by value?
What is void main () in c?
How do we make a global variable accessible across files? Explain the extern keyword?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What is the value of c?
Explain high-order bytes.
Why is it usually a bad idea to use gets()? Suggest a workaround.
Why does notstrcat(string, "!");Work?