Hi,
can any one answer the following question.
What are the advantages and dis advantages of pointers?
Thanks in Advance........
Hi,
can any one answer the following question.
What are the advantages and dis advantages of pointers?
Thanks in Advance........
The main advantages of using pointers are
1.) Function cannot return more than one value. But when the same function can modify many pointer variables and function as if it is returning more than one variable.
2.) In the case of arrays, we can decide the size of th array at runtime by allocating the necessary space.
Coming to the disadvantages of pointers
1.) If sufficient memory is not available during runtime for the storage of pointers, the program may crash (least possible)
Regards,
Abeetha.M
friends any more ideas.....
thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)