Pointers are the extensive features that C Language supports. Pointer mechanism is as usual as hardware operation of locating things not dependent fully on logical tables in system run. The pointers are used to point memory they can point to any part of memory depending on on your requirement and the system features. Pointer as a praise can make things easy like you can directly obtain device buffer for example accessing video device, keyboard ,network driver if one is perfect operating on these then he can make the system to run smoothly but if not may crash a system. Some other hazards are also there like in unix system the buffer overflow problem that causes the hacking of system priorities are also there means this problem makes one to get out of logical operating boundary and access the non permitted resources
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.
Answered by
Pammu
at
12:36 PM on November 06, 2007