pointers are generally useful in the context where we need a continuous memory allocation. Using pointers dynamic allocation of memory is achieved
pointers basically hold the address of a variable. they are mainly used as function parameters to pass values of parameters as references rather than values
A few advantages:
- Pointers allow you to implement sharing without copying
- Pointers allow modifications by a function that is not the creator of the memory i.e. function A can allocate the memory and function C can modify it, without using globals, which is a no-no for safe programming.
- Pointers allow us to use dynamic memory allocation.
Ya its directly point to the memory with the help of pointers results will get very fastly because it points direct to the memory address of the variable.
But you can carefully we can write the program otherwise your system will crash out. Ok