Question:

1. Why should we even bother to study pointers when we can use array?

by  |  earlier

0 LIKES UnLike

2. Give 3 aspects of pointers that programmers should be careful about?

 Tags:

   Report

5 ANSWERS


  1. you need to study pointers to be able to talk to that old  C programmer guy at work who arrives at 5 am and leaves at 2 pm... ahhh nuts, forget about him and his ancient mystical ways, just learn java.


  2. GO JP!

  3. 1)

    It is the only way to express some computations.

    It produces compact and efficient code.

    It provides a very powerful tool.

    2)

    If sufficient memory is not available during runtime for the storage of pointers, the program may crash (least possible)

    there is no bound checking, i.e, if ur program accesses memory out of range there is no compilation error but it might crash during runtime

    Many programmers do not understand pointers as thoroughly as they understand other aspects of the C language. Since a good program is written to be readable by other people, the potential confusion can lead to future maintenance-induced code errors


  4. That sounds like net homework questions!  Why don't you try answering them yourself.  Maybe share your answers with us so we can give you feedback!

    The first one is a joke.  I think it's the other way around: why study arrays when you have pointers?  Pointers are much more versatile.

  5. JP! galingan mo!

Question Stats

Latest activity: earlier.
This question has 5 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.