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
Why can’t we compare structures?
What does #pragma once mean?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
Write a program of prime number using recursion.
What are the benefits of organizational structure?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Why pointers are used in c?
Explain how do you determine a file’s attributes?
Is return a keyword in c?
Discuss the function of conditional operator, size of operator and comma operator with examples.
By using C language input a date into it and if it is right?
What are header files in c?
How can you find out how much memory is available?
In C language, a variable name cannot contain?
Is c weakly typed?