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
How do you initialize pointer variables?
What are the various types of control structures in programming?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Compare interpreters and compilers.
Write a program to check palindrome number in c programming?
Do you know the difference between exit() and _exit() function in c?
Why can arithmetic operations not be performed on void pointers?
What are identifiers in c?
What are the ways to a null pointer can use in c programming language?
What tq means in chat?
What does void main () mean?
What are linker error?
What is static volatile in c?
What is main () in c language?
how logic is used